public function afterSave($data)
 {
     //print_r($data);
     //exit();
     if ($data['sendOption'] == 'immediately') {
         //make queue id
         $qid = Prefs::makeQueueId();
         $qdate = new MongoDate();
         $cid = $data['_id']->toString();
         $cmp = Campaign::find($cid);
         $cmp->push(array('queueId' => $qid, 'queueInitTime' => $qdate));
         $cmp->save();
         //put into queue
         //set history
     } else {
     }
     return $data;
 }