Updated Latest changes
Showing
1000 changed files
with
1099 additions
and
2333 deletions
Too many changes to show.
To preserve performance only 1000 of 1000+ files are displayed.
application/031118_Version.txt
0 → 100644
| 1 | Version No. 1.19v | ||
| 2 | Changes:made changes by Jadhav in getPersonshome function,KHRMSLib.php | ||
| 3 | Date: 12/09/2018 | ||
| 4 | |||
| 5 | Version No. 1.18v | ||
| 6 | Changes: Missed calls to changed will reflect after 11th sept.,Changes DialerController.php and dialer.blade.php | ||
| 7 | Date: 10/09/2018 | ||
| 8 | |||
| 9 | Version No. 1.17v | ||
| 10 | Changes: DAP implementation, Changes KFormLib has been Changed, | ||
| 11 | Date: 10/09/2018 | ||
| 12 | |||
| 13 | Version No. 1.16v | ||
| 14 | Changes: missed call bucket in order Changes KHRMSLib.php added one function for asc | ||
| 15 | Date: 10/09/2018 | ||
| 16 | |||
| 17 | Version No. 1.15v | ||
| 18 | Changes: progressive new logic like COP, Changes dialerController.php | ||
| 19 | Date: 08/09/2018 | ||
| 20 | |||
| 21 | Version No. 1.14v | ||
| 22 | Changes: agent time report updated, commented if condition. | ||
| 23 | Date: 03/09/2018 | ||
| 24 | |||
| 25 | Version No. 1.13v | ||
| 26 | Changes: hangup beep, footer.blade.php, dialer.js changed and hangup beep added to assets/sounds/ | ||
| 27 | Date: 11/08/2018 Only on Mumbai servers | ||
| 28 | |||
| 29 | Version No. 1.12v | ||
| 30 | Changes: followup for new disposition, DialerController.php and dialer.js is changed. | ||
| 31 | Date: 11/08/2018 | ||
| 32 | |||
| 33 | Version No. 1.11v | ||
| 34 | Changes: Master report download, Changes main.blade.php, Added two libraries lib, php, KHRMS.php, XLSX library. | ||
| 35 | Date: 08/08/2018 | ||
| 36 | |||
| 37 | Version No. 1.10v | ||
| 38 | Changes: Username for inbounddrop and Userbusy for SIP/GATEWAY , Changes KPAMIListen.php | ||
| 39 | Date: 02/08/2018 | ||
| 40 | |||
| 41 | Version No. 1.9v | ||
| 42 | Changes: Call log report supervisor, and Date range in call report. | ||
| 43 | Date: 30/07/2018 | ||
| 44 | |||
| 45 | Version No. 1.8v | ||
| 46 | Changes: HDFC Mogo, Changes 1.extension.conf, 2.DialerController.php, 3.mogo tune in moh location. | ||
| 47 | Date 20/07/2018 | ||
| 48 | |||
| 49 | Version No. 1.7V | ||
| 50 | Changes: Live report reload button issue, commented one line of code in Livereport.blade.php | ||
| 51 | Date: 19/07/2018 | ||
| 52 | |||
| 53 | Versio No. 1.6V | ||
| 54 | Changes: call forward, KPAMIListen, .env and extension.conf file updated | ||
| 55 | Date: 14/07/2018 | ||
| 56 | |||
| 57 | Version No. 1.5V | ||
| 58 | Changes: Birthday calls for progressive mode, DialerController.php is updated | ||
| 59 | Date: 13/07/2018 | ||
| 60 | |||
| 61 | Version No. 1.4V | ||
| 62 | Changes: To Blank diallines, DailyLogout.php is updated. | ||
| 63 | Date: 6/07/2018 | ||
| 64 | |||
| 65 | Version No. 1.3v | ||
| 66 | Changes: Bulkupload | ||
| 67 | Date: 5/07/2018 | ||
| 68 | |||
| 69 | Version NO. 1.2v | ||
| 70 | Changes: To remove multiple circles in dialer, dialer.js is updated. | ||
| 71 | Date: 4/07/2018 | ||
| 72 | |||
| 73 | Version No. 1.1v | ||
| 74 | Changes: To remove Inbound Portfolio issue, KPAMIListen updated. | ||
| 75 | Date: 18/06/2018 | ||
| 76 | |||
| 77 |
application/1009_Version.txt
0 → 100644
| 1 | Version No. 1.14v | ||
| 2 | Changes: agent time report updated, commented if condition. | ||
| 3 | Date: 03/09/2018 | ||
| 4 | |||
| 5 | Version No. 1.13v | ||
| 6 | Changes: hangup beep, footer.blade.php, dialer.js changed and hangup beep added to assets/sounds/ | ||
| 7 | Date: 11/08/2018 Only on Mumbai servers | ||
| 8 | |||
| 9 | Version No. 1.12v | ||
| 10 | Changes: followup for new disposition, DialerController.php and dialer.js is changed. | ||
| 11 | Date: 11/08/2018 | ||
| 12 | |||
| 13 | Version No. 1.11v | ||
| 14 | Changes: Master report download, Changes main.blade.php, Added two libraries lib, php, KHRMS.php, XLSX library. | ||
| 15 | Date: 08/08/2018 | ||
| 16 | |||
| 17 | Version No. 1.10v | ||
| 18 | Changes: Username for inbounddrop and Userbusy for SIP/GATEWAY , Changes KPAMIListen.php | ||
| 19 | Date: 02/08/2018 | ||
| 20 | |||
| 21 | Version No. 1.9v | ||
| 22 | Changes: Call log report supervisor, and Date range in call report. | ||
| 23 | Date: 30/07/2018 | ||
| 24 | |||
| 25 | Version No. 1.8v | ||
| 26 | Changes: HDFC Mogo, Changes 1.extension.conf, 2.DialerController.php, 3.mogo tune in moh location. | ||
| 27 | Date 20/07/2018 | ||
| 28 | |||
| 29 | Version No. 1.7V | ||
| 30 | Changes: Live report reload button issue, commented one line of code in Livereport.blade.php | ||
| 31 | Date: 19/07/2018 | ||
| 32 | |||
| 33 | Versio No. 1.6V | ||
| 34 | Changes: call forward, KPAMIListen, .env and extension.conf file updated | ||
| 35 | Date: 14/07/2018 | ||
| 36 | |||
| 37 | Version No. 1.5V | ||
| 38 | Changes: Birthday calls for progressive mode, DialerController.php is updated | ||
| 39 | Date: 13/07/2018 | ||
| 40 | |||
| 41 | Version No. 1.4V | ||
| 42 | Changes: To Blank diallines, DailyLogout.php is updated. | ||
| 43 | Date: 6/07/2018 | ||
| 44 | |||
| 45 | Version No. 1.3v | ||
| 46 | Changes: Bulkupload | ||
| 47 | Date: 5/07/2018 | ||
| 48 | |||
| 49 | Version NO. 1.2v | ||
| 50 | Changes: To remove multiple circles in dialer, dialer.js is updated. | ||
| 51 | Date: 4/07/2018 | ||
| 52 | |||
| 53 | Version No. 1.1v | ||
| 54 | Changes: To remove Inbound Portfolio issue, KPAMIListen updated. | ||
| 55 | Date: 18/06/2018 | ||
| 56 | |||
| 57 |
application/131118_Version.txt
0 → 100644
| 1 | Version No. 1.20v | ||
| 2 | Changes:Dialer Controller for Diallines blocked, KPAMIListen for Log comment, show.blade.php casesensitivity campaign error: No Access | ||
| 3 | Date: 02/11/2018 | ||
| 4 | |||
| 5 | Version No. 1.19v | ||
| 6 | Changes:made changes by Jadhav in getPersonshome function,KHRMSLib.php | ||
| 7 | Date: 12/09/2018 | ||
| 8 | |||
| 9 | Version No. 1.18v | ||
| 10 | Changes: Missed calls to changed will reflect after 11th sept.,Changes DialerController.php and dialer.blade.php | ||
| 11 | Date: 10/09/2018 | ||
| 12 | |||
| 13 | Version No. 1.17v | ||
| 14 | Changes: DAP implementation, Changes KFormLib has been Changed, | ||
| 15 | Date: 10/09/2018 | ||
| 16 | |||
| 17 | Version No. 1.16v | ||
| 18 | Changes: missed call bucket in order Changes KHRMSLib.php added one function for asc | ||
| 19 | Date: 10/09/2018 | ||
| 20 | |||
| 21 | Version No. 1.15v | ||
| 22 | Changes: progressive new logic like COP, Changes dialerController.php | ||
| 23 | Date: 08/09/2018 | ||
| 24 | |||
| 25 | Version No. 1.14v | ||
| 26 | Changes: agent time report updated, commented if condition. | ||
| 27 | Date: 03/09/2018 | ||
| 28 | |||
| 29 | Version No. 1.13v | ||
| 30 | Changes: hangup beep, footer.blade.php, dialer.js changed and hangup beep added to assets/sounds/ | ||
| 31 | Date: 11/08/2018 Only on Mumbai servers | ||
| 32 | |||
| 33 | Version No. 1.12v | ||
| 34 | Changes: followup for new disposition, DialerController.php and dialer.js is changed. | ||
| 35 | Date: 11/08/2018 | ||
| 36 | |||
| 37 | Version No. 1.11v | ||
| 38 | Changes: Master report download, Changes main.blade.php, Added two libraries lib, php, KHRMS.php, XLSX library. | ||
| 39 | Date: 08/08/2018 | ||
| 40 | |||
| 41 | Version No. 1.10v | ||
| 42 | Changes: Username for inbounddrop and Userbusy for SIP/GATEWAY , Changes KPAMIListen.php | ||
| 43 | Date: 02/08/2018 | ||
| 44 | |||
| 45 | Version No. 1.9v | ||
| 46 | Changes: Call log report supervisor, and Date range in call report. | ||
| 47 | Date: 30/07/2018 | ||
| 48 | |||
| 49 | Version No. 1.8v | ||
| 50 | Changes: HDFC Mogo, Changes 1.extension.conf, 2.DialerController.php, 3.mogo tune in moh location. | ||
| 51 | Date 20/07/2018 | ||
| 52 | |||
| 53 | Version No. 1.7V | ||
| 54 | Changes: Live report reload button issue, commented one line of code in Livereport.blade.php | ||
| 55 | Date: 19/07/2018 | ||
| 56 | |||
| 57 | Versio No. 1.6V | ||
| 58 | Changes: call forward, KPAMIListen, .env and extension.conf file updated | ||
| 59 | Date: 14/07/2018 | ||
| 60 | |||
| 61 | Version No. 1.5V | ||
| 62 | Changes: Birthday calls for progressive mode, DialerController.php is updated | ||
| 63 | Date: 13/07/2018 | ||
| 64 | |||
| 65 | Version No. 1.4V | ||
| 66 | Changes: To Blank diallines, DailyLogout.php is updated. | ||
| 67 | Date: 6/07/2018 | ||
| 68 | |||
| 69 | Version No. 1.3v | ||
| 70 | Changes: Bulkupload | ||
| 71 | Date: 5/07/2018 | ||
| 72 | |||
| 73 | Version NO. 1.2v | ||
| 74 | Changes: To remove multiple circles in dialer, dialer.js is updated. | ||
| 75 | Date: 4/07/2018 | ||
| 76 | |||
| 77 | Version No. 1.1v | ||
| 78 | Changes: To remove Inbound Portfolio issue, KPAMIListen updated. | ||
| 79 | Date: 18/06/2018 | ||
| 80 | |||
| 81 |
| 1 | The difference between this server and other servers is KPAMIListen.php Please make sure updating this file. | 1 | Version No.1.21v |
| 2 | Changes: DialerController for the after New calls based on Subdispo Not contacted call will come in the queue. | ||
| 3 | Date: 12/11/2018 | ||
| 4 | |||
| 5 | Version No. 1.20v | ||
| 6 | Changes:Dialer Controller for Diallines blocked, KPAMIListen for Log comment, show.blade.php casesensitivity campaign error: No Access | ||
| 7 | Date: 02/11/2018 | ||
| 8 | |||
| 9 | Version No. 1.19v | ||
| 10 | Changes:made changes by Jadhav in getPersonshome function,KHRMSLib.php | ||
| 11 | Date: 12/09/2018 | ||
| 12 | |||
| 13 | Version No. 1.18v | ||
| 14 | Changes: Missed calls to changed will reflect after 11th sept.,Changes DialerController.php and dialer.blade.php | ||
| 15 | Date: 10/09/2018 | ||
| 16 | |||
| 17 | Version No. 1.17v | ||
| 18 | Changes: DAP implementation, Changes KFormLib has been Changed, | ||
| 19 | Date: 10/09/2018 | ||
| 20 | |||
| 21 | Version No. 1.16v | ||
| 22 | Changes: missed call bucket in order Changes KHRMSLib.php added one function for asc | ||
| 23 | Date: 10/09/2018 | ||
| 24 | |||
| 25 | Version No. 1.15v | ||
| 26 | Changes: progressive new logic like COP, Changes dialerController.php | ||
| 27 | Date: 08/09/2018 | ||
| 2 | 28 | ||
| 3 | Version No. 1.14v | 29 | Version No. 1.14v |
| 4 | Changes: agent time report updated, commented if condition. | 30 | Changes: agent time report updated, commented if condition. | ... | ... |
No preview for this file type
| 1 | <?php namespace App\Console\Commands; | ||
| 2 | |||
| 3 | use Illuminate\Console\Command; | ||
| 4 | //use Mail; | ||
| 5 | use DB; | ||
| 6 | use Config; | ||
| 7 | |||
| 8 | use App\Models\User; | ||
| 9 | use App\Models\Accesslog; | ||
| 10 | |||
| 11 | use App\Models\CRMCall; | ||
| 12 | use Schema; | ||
| 13 | use PDO; | ||
| 14 | use App\Models\Notification; | ||
| 15 | use App\Jobs\KHRMSLib; | ||
| 16 | |||
| 17 | use Input; | ||
| 18 | |||
| 19 | use Illuminate\Database\Schema\Blueprint; | ||
| 20 | |||
| 21 | class bulkserverupload_data extends Command { | ||
| 22 | |||
| 23 | /** | ||
| 24 | * The console command name. | ||
| 25 | * | ||
| 26 | * @var string | ||
| 27 | */ | ||
| 28 | protected $signature = 'bulkserverupload_data'; | ||
| 29 | |||
| 30 | /** | ||
| 31 | * The console command description. | ||
| 32 | * | ||
| 33 | * @var string | ||
| 34 | */ | ||
| 35 | protected $description = 'bulkserverupload_data'; | ||
| 36 | |||
| 37 | /** | ||
| 38 | * Execute the console command. | ||
| 39 | * | ||
| 40 | * @return mixed | ||
| 41 | */ | ||
| 42 | public function handle() | ||
| 43 | { | ||
| 44 | |||
| 45 | //echo "\n".date('Y-m-d')."\n"; | ||
| 46 | |||
| 47 | echo "2"; | ||
| 48 | echo "\n".date('Y-m-d H:i:s')."\n"; | ||
| 49 | $server_ip=env('app_ip'); | ||
| 50 | $central_ip=env('central_ip'); | ||
| 51 | |||
| 52 | |||
| 53 | $wakka = new KHRMSLib(); | ||
| 54 | |||
| 55 | $kformlib=new \App\Jobs\KFormLib($wakka->HRCoreVars["HRFiledsStr"]); | ||
| 56 | $kformlib->gthis=$wakka; | ||
| 57 | |||
| 58 | $themehome=$wakka->GetThemePath('/'); | ||
| 59 | $updatetime=time(); | ||
| 60 | |||
| 61 | $clientlst=$wakka->GetBBBUserData("clientslist"); | ||
| 62 | |||
| 63 | $isadmin=$wakka->IsAdmin(); | ||
| 64 | $username=$wakka->GetUserName(); | ||
| 65 | $triggers=Input::get("triggers"); | ||
| 66 | $tmpstr=explode(",",$kformlib->HRFiledsStr); | ||
| 67 | |||
| 68 | $success="";$message="";$successcnt=0;$duplicatecount=0; | ||
| 69 | |||
| 70 | |||
| 71 | $conn = array( | ||
| 72 | 'driver' => 'mysql', | ||
| 73 | 'host' => $central_ip, | ||
| 74 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | ||
| 75 | 'username' => env('DB_USERNAME', 'root'), | ||
| 76 | 'password' => env('DB_PASSWORD', 'yb9738z'), | ||
| 77 | 'charset' => 'utf8', | ||
| 78 | 'collation' => 'utf8_unicode_ci', | ||
| 79 | 'prefix' => '', | ||
| 80 | 'options' => array( | ||
| 81 | PDO::ATTR_TIMEOUT => 5, | ||
| 82 | ), | ||
| 83 | ); | ||
| 84 | Config::set("database.connections.conn", $conn); | ||
| 85 | |||
| 86 | DB::connection("conn")->getDatabaseName(); | ||
| 87 | |||
| 88 | $serverclist=DB::connection("conn")->select(DB::raw("select location from server_details where server_ip='$server_ip'")); | ||
| 89 | $location=$serverclist[0]->location; | ||
| 90 | |||
| 91 | |||
| 92 | $excelarray = DB::connection("conn")->select(DB::raw("select * from bz_record_upload_uat_150918 where SERVER_IP='$server_ip'")); | ||
| 93 | |||
| 94 | $conn=''; | ||
| 95 | |||
| 96 | $tcol=0;$fieldsarr=array();$extrahdrarr=array(); | ||
| 97 | |||
| 98 | foreach($excelarray as $key => $array){ | ||
| 99 | $excelarray[$key] = (array)$array; | ||
| 100 | } | ||
| 101 | |||
| 102 | $highestColumn = DB::connection("conn")->select(DB::raw("select count(*) as cnt from information_schema.columns where table_name='bz_record_upload_uat_150918'")); | ||
| 103 | $highestColumn = $highestColumn[0]->cnt; | ||
| 104 | |||
| 105 | $highestrow = count($excelarray); | ||
| 106 | |||
| 107 | $flag = 0; | ||
| 108 | $editflag=0; | ||
| 109 | |||
| 110 | for($i=0;$i<$highestrow;$i++) | ||
| 111 | { | ||
| 112 | if($excelarray[$i]["clientcode"]!="") | ||
| 113 | { | ||
| 114 | /*if($excelarray[$i]["id"]=="CREATE") | ||
| 115 | { | ||
| 116 | $excelarray[$i]["id"]=$wakka->Query("insert into","","records",array('created'=>date('Y-m-d H:i:s'))); | ||
| 117 | } | ||
| 118 | else*/ | ||
| 119 | $excelarray[$i]["clientcode"]=intval($excelarray[$i]["clientcode"]); | ||
| 120 | //$excelarray[$i]["client"]=$excelarray[$i]["rm_code"]; | ||
| 121 | if($wakka->getCount("records","clientcode='".$excelarray[$i]["clientcode"]."'")==1) | ||
| 122 | { | ||
| 123 | //$empdata=$wakka->getPerson($excelarray[$i]["id"]); | ||
| 124 | $empdata=$wakka->getPersonServer($excelarray[$i]["clientcode"]); | ||
| 125 | $ppldata=$empdata["peopledata"]; | ||
| 126 | $createdlog=$empdata['modifylog']; | ||
| 127 | $fdirty=$empdata['dirty']; | ||
| 128 | |||
| 129 | $createdlog[$updatetime]=$username."::"; | ||
| 130 | $createdlog["updated"]=$updatetime; | ||
| 131 | |||
| 132 | $newdata=$ppldata; | ||
| 133 | foreach($excelarray[$i] as $key => $value) | ||
| 134 | { | ||
| 135 | if($value!="") | ||
| 136 | { | ||
| 137 | if("A".$ppldata[$key]!="A".$value)//forcing string comparrision //MAGIC | ||
| 138 | { | ||
| 139 | $value=str_replace("'"," ",$value); | ||
| 140 | if(strstr($createdlog[$updatetime],$key)==FALSE)$createdlog[$updatetime].="$key|".str_replace(array("|",",")," ",$ppldata[$key])."|".str_replace(array("|",",")," ",$value).","; | ||
| 141 | |||
| 142 | $fdirty[$key]=1; | ||
| 143 | |||
| 144 | $newdata[$key]=$value; | ||
| 145 | } | ||
| 146 | } | ||
| 147 | } | ||
| 148 | |||
| 149 | /*Start - Changes need to be done*/ | ||
| 150 | |||
| 151 | if($excelarray[$i]["status"]==null) | ||
| 152 | { | ||
| 153 | $empdata['status'] = "rom"; | ||
| 154 | } | ||
| 155 | |||
| 156 | if($excelarray[$i]["dialer_status"]==null) | ||
| 157 | { | ||
| 158 | $empdata['dialer_status'] = "rom"; | ||
| 159 | } | ||
| 160 | |||
| 161 | if($excelarray[$i]["dialer_substatus"]==null) | ||
| 162 | { | ||
| 163 | $empdata['dialer_substatus'] = "rom"; | ||
| 164 | } | ||
| 165 | |||
| 166 | /*End - Changes need to be done*/ | ||
| 167 | |||
| 168 | $empdata["peopledata"]=$newdata; | ||
| 169 | $empdata['modifylog']=$createdlog; | ||
| 170 | $empdata['dirty']=$fdirty; | ||
| 171 | |||
| 172 | //$wakka->setPerson($excelarray[$i]["id"],$empdata); | ||
| 173 | $wakka->setPersonServer($excelarray[$i]["clientcode"],$empdata); | ||
| 174 | $excelarray[$i]['modified']=date('Y-m-d H:i:s'); | ||
| 175 | $successArr[] = $excelarray[$i]; | ||
| 176 | |||
| 177 | } | ||
| 178 | else | ||
| 179 | { | ||
| 180 | $excelarray[$i]["id"]=$wakka->Query("insert into","","records",array('created'=>date('Y-m-d H:i:s'))); | ||
| 181 | $empdata=$wakka->getPerson($excelarray[$i]["id"]); | ||
| 182 | $ppldata=$empdata["peopledata"]; | ||
| 183 | $createdlog=$empdata['modifylog']; | ||
| 184 | $fdirty=$empdata['dirty']; | ||
| 185 | |||
| 186 | |||
| 187 | $createdlog[$updatetime]=$username."::"; | ||
| 188 | $createdlog["updated"]=$updatetime; | ||
| 189 | |||
| 190 | $newdata=$ppldata; | ||
| 191 | foreach($excelarray[$i] as $key => $value) | ||
| 192 | { | ||
| 193 | if($value!="") | ||
| 194 | { | ||
| 195 | if("A".$ppldata[$key]!="A".$value)//forcing string comparrision //MAGIC | ||
| 196 | { | ||
| 197 | $value=str_replace("'"," ",$value); | ||
| 198 | if(strstr($createdlog[$updatetime],$key)==FALSE)$createdlog[$updatetime].="$key|".str_replace(array("|",",")," ",$ppldata[$key])."|".str_replace(array("|",",")," ",$value).","; | ||
| 199 | |||
| 200 | $fdirty[$key]=1; | ||
| 201 | |||
| 202 | $newdata[$key]=$value; | ||
| 203 | } | ||
| 204 | } | ||
| 205 | } | ||
| 206 | $empdata["peopledata"]=$newdata; | ||
| 207 | $empdata['modifylog']=$createdlog; | ||
| 208 | $empdata['dirty']=$fdirty; | ||
| 209 | |||
| 210 | //$wakka->setPerson($excelarray[$i]["id"],$empdata); | ||
| 211 | $wakka->setPerson($excelarray[$i]["id"],$empdata); | ||
| 212 | |||
| 213 | $reason = ""; | ||
| 214 | |||
| 215 | $reason .= "Record ID is not on local server,"; | ||
| 216 | |||
| 217 | $excelarray[$i]['server_ip'] =$server_ip; | ||
| 218 | $excelarray[$i]['location'] =$location; | ||
| 219 | |||
| 220 | if($excelarray[$i]["clientcode"]!="") | ||
| 221 | $excelarray[$i]['cust_id'] =$excelarray[$i]["clientcode"]; | ||
| 222 | $excelarray[$i]['record_id'] = $excelarray[$i]["id"]; | ||
| 223 | |||
| 224 | $excelarray[$i]['Reason'] = $reason; | ||
| 225 | |||
| 226 | $failureArr[] = $excelarray[$i]; | ||
| 227 | |||
| 228 | } | ||
| 229 | } | ||
| 230 | else | ||
| 231 | { | ||
| 232 | |||
| 233 | $reason = ""; | ||
| 234 | |||
| 235 | if($excelarray[$i]["id"]=="") | ||
| 236 | $reason .= "Column ID is blank,"; | ||
| 237 | |||
| 238 | $excelarray[$i]['server_ip'] =$server_ip; | ||
| 239 | $excelarray[$i]['location'] =$location; | ||
| 240 | |||
| 241 | if($excelarray[$i]["clientcode"]!="") | ||
| 242 | $excelarray[$i]['cust_id'] =$excelarray[$i]["clientcode"]; | ||
| 243 | |||
| 244 | $excelarray[$i]['Reason'] = $reason; | ||
| 245 | |||
| 246 | $failureArr[] = $excelarray[$i]; | ||
| 247 | |||
| 248 | } | ||
| 249 | |||
| 250 | } | ||
| 251 | /*if(!empty($successArr)){ | ||
| 252 | foreach($successArr as $succes) | ||
| 253 | { | ||
| 254 | $setSuccess=array(); | ||
| 255 | |||
| 256 | $setSuccess[] = "server_ip='$server_ip'"; | ||
| 257 | $setSuccess[] = "location='$location'"; | ||
| 258 | $setSuccess[] = "record_id='".$succes['id']."'"; | ||
| 259 | $setSuccess[] = "cust_id='".$succes['clientcode']."'"; | ||
| 260 | $setSuccess[] = "modified='".$succes['modified']."'"; | ||
| 261 | |||
| 262 | $setSuccess = implode(",",$setSuccess); | ||
| 263 | |||
| 264 | DB::connection("conn")->insert(DB::raw("insert into bz_record_upload_uat_success set $setSuccess")); | ||
| 265 | } | ||
| 266 | } | ||
| 267 | if(!empty($failureArr)){ | ||
| 268 | foreach($failureArr as $failur) | ||
| 269 | { | ||
| 270 | $setFailure=array(); | ||
| 271 | |||
| 272 | $setFailure[] = "server_ip='$server_ip'"; | ||
| 273 | $setFailure[] = "location='$location'"; | ||
| 274 | $setFailure[] = "cust_id='".$failur['clientcode']."'"; | ||
| 275 | $setFailure[] = "record_id='".$failur['record_id']."'"; | ||
| 276 | $setFailure[] = "reason='".$failur['Reason']."'"; | ||
| 277 | |||
| 278 | $setFailure = implode(",",$setFailure); | ||
| 279 | |||
| 280 | DB::connection("conn")->insert(DB::raw("insert into bz_record_upload_uat_failure set $setFailure")); | ||
| 281 | } | ||
| 282 | }*/ | ||
| 283 | |||
| 284 | DB::connection("conn")->disconnect(); | ||
| 285 | } | ||
| 286 | } |
| 1 | <?php namespace App\Console\Commands; | ||
| 2 | |||
| 3 | use Illuminate\Console\Command; | ||
| 4 | //use Mail; | ||
| 5 | use DB; | ||
| 6 | use Config; | ||
| 7 | |||
| 8 | use App\Models\User; | ||
| 9 | use App\Models\Accesslog; | ||
| 10 | |||
| 11 | use App\Models\CRMCall; | ||
| 12 | use Schema; | ||
| 13 | use PDO; | ||
| 14 | use App\Models\Notification; | ||
| 15 | use App\Jobs\KHRMSLib; | ||
| 16 | |||
| 17 | use Input; | ||
| 18 | |||
| 19 | use Illuminate\Database\Schema\Blueprint; | ||
| 20 | |||
| 21 | class bulkServerUpload extends Command { | ||
| 22 | |||
| 23 | /** | ||
| 24 | * The console command name. | ||
| 25 | * | ||
| 26 | * @var string | ||
| 27 | */ | ||
| 28 | protected $signature = 'bulkServerUpload'; | ||
| 29 | |||
| 30 | /** | ||
| 31 | * The console command description. | ||
| 32 | * | ||
| 33 | * @var string | ||
| 34 | */ | ||
| 35 | protected $description = 'bulkServerUpload'; | ||
| 36 | |||
| 37 | /** | ||
| 38 | * Execute the console command. | ||
| 39 | * | ||
| 40 | * @return mixed | ||
| 41 | */ | ||
| 42 | public function handle() | ||
| 43 | { | ||
| 44 | |||
| 45 | //echo "\n".date('Y-m-d')."\n"; | ||
| 46 | |||
| 47 | echo "2"; | ||
| 48 | echo "\n".date('Y-m-d H:i:s')."\n"; | ||
| 49 | $server_ip=env('app_ip'); | ||
| 50 | $central_ip=env('central_ip'); | ||
| 51 | |||
| 52 | |||
| 53 | $wakka = new KHRMSLib(); | ||
| 54 | |||
| 55 | $kformlib=new \App\Jobs\KFormLib($wakka->HRCoreVars["HRFiledsStr"]); | ||
| 56 | $kformlib->gthis=$wakka; | ||
| 57 | |||
| 58 | $themehome=$wakka->GetThemePath('/'); | ||
| 59 | $updatetime=time(); | ||
| 60 | |||
| 61 | $clientlst=$wakka->GetBBBUserData("clientslist"); | ||
| 62 | |||
| 63 | $isadmin=$wakka->IsAdmin(); | ||
| 64 | $username=$wakka->GetUserName(); | ||
| 65 | $triggers=Input::get("triggers"); | ||
| 66 | $tmpstr=explode(",",$kformlib->HRFiledsStr); | ||
| 67 | |||
| 68 | $success="";$message="";$successcnt=0;$duplicatecount=0; | ||
| 69 | |||
| 70 | |||
| 71 | $conn = array( | ||
| 72 | 'driver' => 'mysql', | ||
| 73 | 'host' => $central_ip, | ||
| 74 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | ||
| 75 | 'username' => env('DB_USERNAME', 'root'), | ||
| 76 | 'password' => env('DB_PASSWORD', 'yb9738z'), | ||
| 77 | 'charset' => 'utf8', | ||
| 78 | 'collation' => 'utf8_unicode_ci', | ||
| 79 | 'prefix' => '', | ||
| 80 | 'options' => array( | ||
| 81 | PDO::ATTR_TIMEOUT => 5, | ||
| 82 | ), | ||
| 83 | ); | ||
| 84 | Config::set("database.connections.conn", $conn); | ||
| 85 | |||
| 86 | DB::connection("conn")->getDatabaseName(); | ||
| 87 | |||
| 88 | $serverclist=DB::connection("conn")->select(DB::raw("select location from server_details where server_ip='$server_ip'")); | ||
| 89 | $location=$serverclist[0]->location; | ||
| 90 | |||
| 91 | |||
| 92 | $excelarray = DB::connection("conn")->select(DB::raw("select * from bz_record_upload_uat_09102018_1 where SERVER_IP='$server_ip'")); | ||
| 93 | |||
| 94 | $conn=''; | ||
| 95 | |||
| 96 | $tcol=0;$fieldsarr=array();$extrahdrarr=array(); | ||
| 97 | |||
| 98 | foreach($excelarray as $key => $array){ | ||
| 99 | $excelarray[$key] = (array)$array; | ||
| 100 | } | ||
| 101 | |||
| 102 | $highestColumn = DB::connection("conn")->select(DB::raw("select count(*) as cnt from information_schema.columns where table_name='bz_record_upload_uat_09102018_1'")); | ||
| 103 | $highestColumn = $highestColumn[0]->cnt; | ||
| 104 | |||
| 105 | $highestrow = count($excelarray); | ||
| 106 | |||
| 107 | $flag = 0; | ||
| 108 | $editflag=0; | ||
| 109 | |||
| 110 | for($i=0;$i<$highestrow;$i++) | ||
| 111 | { | ||
| 112 | if($excelarray[$i]["clientcode"]!="") | ||
| 113 | { | ||
| 114 | /*if($excelarray[$i]["id"]=="CREATE") | ||
| 115 | { | ||
| 116 | $excelarray[$i]["id"]=$wakka->Query("insert into","","records",array('created'=>date('Y-m-d H:i:s'))); | ||
| 117 | } | ||
| 118 | else*/ | ||
| 119 | $excelarray[$i]["clientcode"]=intval($excelarray[$i]["clientcode"]); | ||
| 120 | //$excelarray[$i]["client"]=$excelarray[$i]["rm_code"]; | ||
| 121 | if($wakka->getCount("records","clientcode='".$excelarray[$i]["clientcode"]."'")==1) | ||
| 122 | { | ||
| 123 | //$empdata=$wakka->getPerson($excelarray[$i]["id"]); | ||
| 124 | $empdata=$wakka->getPersonServer($excelarray[$i]["clientcode"]); | ||
| 125 | $excelarray[$i]["other_information"]='2018-10-09_1'; | ||
| 126 | $ppldata=$empdata["peopledata"]; | ||
| 127 | $createdlog=$empdata['modifylog']; | ||
| 128 | $fdirty=$empdata['dirty']; | ||
| 129 | |||
| 130 | $createdlog[$updatetime]=$username."::"; | ||
| 131 | $createdlog["updated"]=$updatetime; | ||
| 132 | |||
| 133 | $newdata=$ppldata; | ||
| 134 | foreach($excelarray[$i] as $key => $value) | ||
| 135 | { | ||
| 136 | if($value!="") | ||
| 137 | { | ||
| 138 | if("A".$ppldata[$key]!="A".$value)//forcing string comparrision //MAGIC | ||
| 139 | { | ||
| 140 | $value=str_replace("'"," ",$value); | ||
| 141 | if(strstr($createdlog[$updatetime],$key)==FALSE)$createdlog[$updatetime].="$key|".str_replace(array("|",",")," ",$ppldata[$key])."|".str_replace(array("|",",")," ",$value).","; | ||
| 142 | |||
| 143 | $fdirty[$key]=1; | ||
| 144 | |||
| 145 | $newdata[$key]=$value; | ||
| 146 | } | ||
| 147 | } | ||
| 148 | } | ||
| 149 | |||
| 150 | /*Start - Changes need to be done*/ | ||
| 151 | |||
| 152 | if($excelarray[$i]["status"]==null) | ||
| 153 | { | ||
| 154 | $empdata['status'] = "rom"; | ||
| 155 | } | ||
| 156 | |||
| 157 | if($excelarray[$i]["dialer_status"]==null) | ||
| 158 | { | ||
| 159 | $empdata['dialer_status'] = "rom"; | ||
| 160 | } | ||
| 161 | |||
| 162 | if($excelarray[$i]["dialer_substatus"]==null) | ||
| 163 | { | ||
| 164 | $empdata['dialer_substatus'] = "rom"; | ||
| 165 | } | ||
| 166 | |||
| 167 | /*End - Changes need to be done*/ | ||
| 168 | |||
| 169 | $empdata["peopledata"]=$newdata; | ||
| 170 | $empdata['modifylog']=$createdlog; | ||
| 171 | $empdata['dirty']=$fdirty; | ||
| 172 | |||
| 173 | //$wakka->setPerson($excelarray[$i]["id"],$empdata); | ||
| 174 | $wakka->setPersonServer($excelarray[$i]["clientcode"],$empdata); | ||
| 175 | $excelarray[$i]['modified']=date('Y-m-d H:i:s'); | ||
| 176 | $successArr[] = $excelarray[$i]; | ||
| 177 | |||
| 178 | } | ||
| 179 | else | ||
| 180 | { | ||
| 181 | $excelarray[$i]["id"]=$wakka->Query("insert into","","records",array('created'=>date('Y-m-d H:i:s'))); | ||
| 182 | $empdata=$wakka->getPerson($excelarray[$i]["id"]); | ||
| 183 | $ppldata=$empdata["peopledata"]; | ||
| 184 | $createdlog=$empdata['modifylog']; | ||
| 185 | $fdirty=$empdata['dirty']; | ||
| 186 | |||
| 187 | |||
| 188 | $createdlog[$updatetime]=$username."::"; | ||
| 189 | $createdlog["updated"]=$updatetime; | ||
| 190 | |||
| 191 | $newdata=$ppldata; | ||
| 192 | foreach($excelarray[$i] as $key => $value) | ||
| 193 | { | ||
| 194 | if($value!="") | ||
| 195 | { | ||
| 196 | if("A".$ppldata[$key]!="A".$value)//forcing string comparrision //MAGIC | ||
| 197 | { | ||
| 198 | $value=str_replace("'"," ",$value); | ||
| 199 | if(strstr($createdlog[$updatetime],$key)==FALSE)$createdlog[$updatetime].="$key|".str_replace(array("|",",")," ",$ppldata[$key])."|".str_replace(array("|",",")," ",$value).","; | ||
| 200 | |||
| 201 | $fdirty[$key]=1; | ||
| 202 | |||
| 203 | $newdata[$key]=$value; | ||
| 204 | } | ||
| 205 | } | ||
| 206 | } | ||
| 207 | $empdata["peopledata"]=$newdata; | ||
| 208 | $empdata['modifylog']=$createdlog; | ||
| 209 | $empdata['dirty']=$fdirty; | ||
| 210 | |||
| 211 | //$wakka->setPerson($excelarray[$i]["id"],$empdata); | ||
| 212 | $wakka->setPerson($excelarray[$i]["id"],$empdata); | ||
| 213 | |||
| 214 | $reason = ""; | ||
| 215 | |||
| 216 | $reason .= "Record ID is not on local server,"; | ||
| 217 | |||
| 218 | $excelarray[$i]['server_ip'] =$server_ip; | ||
| 219 | $excelarray[$i]['location'] =$location; | ||
| 220 | |||
| 221 | if($excelarray[$i]["clientcode"]!="") | ||
| 222 | $excelarray[$i]['cust_id'] =$excelarray[$i]["clientcode"]; | ||
| 223 | $excelarray[$i]['record_id'] = $excelarray[$i]["id"]; | ||
| 224 | |||
| 225 | $excelarray[$i]['Reason'] = $reason; | ||
| 226 | |||
| 227 | $failureArr[] = $excelarray[$i]; | ||
| 228 | |||
| 229 | } | ||
| 230 | } | ||
| 231 | else | ||
| 232 | { | ||
| 233 | |||
| 234 | $reason = ""; | ||
| 235 | |||
| 236 | if($excelarray[$i]["id"]=="") | ||
| 237 | $reason .= "Column ID is blank,"; | ||
| 238 | |||
| 239 | $excelarray[$i]['server_ip'] =$server_ip; | ||
| 240 | $excelarray[$i]['location'] =$location; | ||
| 241 | |||
| 242 | if($excelarray[$i]["clientcode"]!="") | ||
| 243 | $excelarray[$i]['cust_id'] =$excelarray[$i]["clientcode"]; | ||
| 244 | |||
| 245 | $excelarray[$i]['Reason'] = $reason; | ||
| 246 | |||
| 247 | $failureArr[] = $excelarray[$i]; | ||
| 248 | |||
| 249 | } | ||
| 250 | |||
| 251 | } | ||
| 252 | echo "\n"."Updated data partial upload end"."\n"; | ||
| 253 | /*if(!empty($successArr)){ | ||
| 254 | foreach($successArr as $succes) | ||
| 255 | { | ||
| 256 | $setSuccess=array(); | ||
| 257 | |||
| 258 | $setSuccess[] = "server_ip='$server_ip'"; | ||
| 259 | $setSuccess[] = "location='$location'"; | ||
| 260 | $setSuccess[] = "record_id='".$succes['id']."'"; | ||
| 261 | $setSuccess[] = "cust_id='".$succes['clientcode']."'"; | ||
| 262 | $setSuccess[] = "modified='".$succes['modified']."'"; | ||
| 263 | |||
| 264 | $setSuccess = implode(",",$setSuccess); | ||
| 265 | |||
| 266 | DB::connection("conn")->insert(DB::raw("insert into bz_record_upload_uat_09102018_1_success set $setSuccess")); | ||
| 267 | } | ||
| 268 | } | ||
| 269 | if(!empty($failureArr)){ | ||
| 270 | foreach($failureArr as $failur) | ||
| 271 | { | ||
| 272 | $setFailure=array(); | ||
| 273 | |||
| 274 | $setFailure[] = "server_ip='$server_ip'"; | ||
| 275 | $setFailure[] = "location='$location'"; | ||
| 276 | $setFailure[] = "cust_id='".$failur['clientcode']."'"; | ||
| 277 | $setFailure[] = "record_id='".$failur['record_id']."'"; | ||
| 278 | $setFailure[] = "reason='".$failur['Reason']."'"; | ||
| 279 | |||
| 280 | $setFailure = implode(",",$setFailure); | ||
| 281 | |||
| 282 | DB::connection("conn")->insert(DB::raw("insert into bz_record_upload_uat_failure set $setFailure")); | ||
| 283 | } | ||
| 284 | }*/ | ||
| 285 | |||
| 286 | DB::connection("conn")->disconnect(); | ||
| 287 | } | ||
| 288 | } |
application/app/Console/Commands/BirthdayDate.php
100644 → 100755
File mode changed
application/app/Console/Commands/Calllogupdate.php
100644 → 100755
| ... | @@ -50,9 +50,9 @@ class Calllogupdate extends Command { | ... | @@ -50,9 +50,9 @@ class Calllogupdate extends Command { |
| 50 | $conn = array( | 50 | $conn = array( |
| 51 | 'driver' => 'mysql', | 51 | 'driver' => 'mysql', |
| 52 | 'host' => $central_ip, | 52 | 'host' => $central_ip, |
| 53 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 53 | 'database' => env('CENTRAL_DB'), |
| 54 | 'username' => env('DB_USERNAME', 'root'), | 54 | 'username' => env('CENTRAL_USERNAME'), |
| 55 | 'password' => env('DB_PASSWORD', ''), | 55 | 'password' => env('CENTRAL_PASSWORD'), |
| 56 | 'charset' => 'utf8', | 56 | 'charset' => 'utf8', |
| 57 | 'collation' => 'utf8_unicode_ci', | 57 | 'collation' => 'utf8_unicode_ci', |
| 58 | 'prefix' => '', | 58 | 'prefix' => '', | ... | ... |
| ... | @@ -13,6 +13,7 @@ use Schema; | ... | @@ -13,6 +13,7 @@ use Schema; |
| 13 | use PDO; | 13 | use PDO; |
| 14 | use App\Models\Notification; | 14 | use App\Models\Notification; |
| 15 | use App\Jobs\KHRMSLib; | 15 | use App\Jobs\KHRMSLib; |
| 16 | use App\Http\Controllers\DialerController; | ||
| 16 | 17 | ||
| 17 | use Input; | 18 | use Input; |
| 18 | use Log; | 19 | use Log; |
| ... | @@ -49,7 +50,7 @@ class CreateCall extends Command { | ... | @@ -49,7 +50,7 @@ class CreateCall extends Command { |
| 49 | { | 50 | { |
| 50 | while(true) | 51 | while(true) |
| 51 | { | 52 | { |
| 52 | usleep(1000000); | 53 | usleep(2000000); |
| 53 | $this->runPredictive(); | 54 | $this->runPredictive(); |
| 54 | } | 55 | } |
| 55 | } | 56 | } |
| ... | @@ -60,7 +61,10 @@ class CreateCall extends Command { | ... | @@ -60,7 +61,10 @@ class CreateCall extends Command { |
| 60 | try { | 61 | try { |
| 61 | $this->updatePrepareColumn(); | 62 | $this->updatePrepareColumn(); |
| 62 | $usrArrs = $this->getActiveUsersCampaignWise("with"); | 63 | $usrArrs = $this->getActiveUsersCampaignWise("with"); |
| 63 | $availChannel = $this->getActualAvailChannelCount(); | 64 | $cntAndStrArr = $this->getActualAvailChannelCount(); |
| 65 | |||
| 66 | $availChannel = $cntAndStrArr['cnt']; | ||
| 67 | $availDialStr = $cntAndStrArr['dialstr']; | ||
| 64 | 68 | ||
| 65 | if(count($usrArrs)){ | 69 | if(count($usrArrs)){ |
| 66 | 70 | ||
| ... | @@ -81,13 +85,12 @@ class CreateCall extends Command { | ... | @@ -81,13 +85,12 @@ class CreateCall extends Command { |
| 81 | //Log::useFiles(storage_path()."/logs/predictive_".date("Y_m_d").".log"); | 85 | //Log::useFiles(storage_path()."/logs/predictive_".date("Y_m_d").".log"); |
| 82 | //Log::info("CallCount=".$acalls); | 86 | //Log::info("CallCount=".$acalls); |
| 83 | 87 | ||
| 84 | $this->CreateCall($client, $acalls); | 88 | $this->CreateCall($client, $acalls, $availDialStr); |
| 85 | } | 89 | } |
| 86 | } | 90 | } |
| 87 | } catch (Exception $e) { | 91 | } catch (Exception $e) { |
| 88 | Log::useFiles(storage_path()."/logs/predictive_".date("Y_m_d").".log"); | 92 | Log::useFiles(storage_path()."/logs/predictive_".date("Y_m_d").".log"); |
| 89 | Log::error($e); | 93 | Log::error($e); |
| 90 | continue; | ||
| 91 | } | 94 | } |
| 92 | } | 95 | } |
| 93 | 96 | ||
| ... | @@ -123,7 +126,7 @@ class CreateCall extends Command { | ... | @@ -123,7 +126,7 @@ class CreateCall extends Command { |
| 123 | //Log::info("updatedUserIdArr");Log::info($updatedUserIdArr); | 126 | //Log::info("updatedUserIdArr");Log::info($updatedUserIdArr); |
| 124 | } | 127 | } |
| 125 | 128 | ||
| 126 | Sipid::whereIn('user', $updatedUserIdArr)->update(['prepare_call'=>1]); | 129 | DB::table('sipids')->whereIn('user', $updatedUserIdArr)->update(['prepare_call'=>1]); |
| 127 | } | 130 | } |
| 128 | } | 131 | } |
| 129 | 132 | ||
| ... | @@ -162,8 +165,10 @@ class CreateCall extends Command { | ... | @@ -162,8 +165,10 @@ class CreateCall extends Command { |
| 162 | 165 | ||
| 163 | public function getActualAvailChannelCount() | 166 | public function getActualAvailChannelCount() |
| 164 | { | 167 | { |
| 168 | $data = array(); | ||
| 165 | $cnt = 0; | 169 | $cnt = 0; |
| 166 | $allChanlCnt = $this->getSpanCount(); | 170 | $allChanlCnt = $this->getSpanCount(); |
| 171 | $dialstr = ""; | ||
| 167 | 172 | ||
| 168 | $diallineVal = Dialline::where('server','=', env('app_ip'))->where("status","=","Free")->where("dialstr","!=","")->where("enabled","=","1")->select('dialstr')->first(); | 173 | $diallineVal = Dialline::where('server','=', env('app_ip'))->where("status","=","Free")->where("dialstr","!=","")->where("enabled","=","1")->select('dialstr')->first(); |
| 169 | 174 | ||
| ... | @@ -179,9 +184,14 @@ class CreateCall extends Command { | ... | @@ -179,9 +184,14 @@ class CreateCall extends Command { |
| 179 | 184 | ||
| 180 | $cnt = $allChanlCnt - $dialedCnt; | 185 | $cnt = $allChanlCnt - $dialedCnt; |
| 181 | } | 186 | } |
| 187 | |||
| 188 | $dialstr = $diallineVal->dialstr; | ||
| 182 | } | 189 | } |
| 183 | 190 | ||
| 184 | return $cnt; | 191 | $data['cnt'] = $cnt; |
| 192 | $data['dialstr'] = $dialstr; | ||
| 193 | |||
| 194 | return $data; | ||
| 185 | } | 195 | } |
| 186 | 196 | ||
| 187 | public function getActualSipDialedCallCount() | 197 | public function getActualSipDialedCallCount() |
| ... | @@ -205,11 +215,12 @@ class CreateCall extends Command { | ... | @@ -205,11 +215,12 @@ class CreateCall extends Command { |
| 205 | public function getActualDahdiDialedCallCount() | 215 | public function getActualDahdiDialedCallCount() |
| 206 | { | 216 | { |
| 207 | $allChnnlArr = array(); | 217 | $allChnnlArr = array(); |
| 208 | $dialstr = "ACTIVE"; | 218 | $dialstr = "- ACTIVE"; |
| 209 | $status = "RED"; | 219 | $status = "RED"; |
| 210 | $chnlCnt = 0; | 220 | $chnlCnt = 0; |
| 211 | 221 | ||
| 212 | exec("/usr/sbin/asterisk -rx 'service dahdi status'",$allChnnls); | 222 | //exec("/usr/sbin/asterisk -rx 'service dahdi status'",$allChnnls); |
| 223 | exec("service dahdi status",$allChnnls); | ||
| 213 | 224 | ||
| 214 | foreach($allChnnls as $allChnnl){ | 225 | foreach($allChnnls as $allChnnl){ |
| 215 | //$allChnnlArr[] = explode(" ", preg_replace('!\s+!', ' ', $allChnnl) ); | 226 | //$allChnnlArr[] = explode(" ", preg_replace('!\s+!', ' ', $allChnnl) ); |
| ... | @@ -244,24 +255,24 @@ class CreateCall extends Command { | ... | @@ -244,24 +255,24 @@ class CreateCall extends Command { |
| 244 | return $cnt; | 255 | return $cnt; |
| 245 | } | 256 | } |
| 246 | 257 | ||
| 247 | public function CreateCall($client, $acalls) | 258 | public function CreateCall($client, $acalls, $availDialStr) |
| 248 | { | 259 | { |
| 249 | if($acalls>0) | 260 | if($acalls>0) |
| 250 | { | 261 | { |
| 251 | for($i=0;$i<$acalls;$i++) | 262 | for($i=0;$i<$acalls;$i++) |
| 252 | { | 263 | { |
| 253 | $this->useChannelToDial($client); | 264 | $this->useChannelToDial($client, $availDialStr); |
| 254 | } | 265 | } |
| 255 | } | 266 | } |
| 256 | } | 267 | } |
| 257 | 268 | ||
| 258 | public function useChannelToDial($client) | 269 | public function useChannelToDial($client, $availDialStr) |
| 259 | { | 270 | { |
| 260 | $dialline=Dialline::where('server','=', env('app_ip'))->where("status","=","Free")->where("enabled","=","1"); | 271 | $dialline=Dialline::where('server','=', env('app_ip'))->where("status","=","Free")->where("enabled","=","1")->where("dialstr", "=", $availDialStr)->orderBy('updated_at','ASC')->first(); |
| 261 | 272 | ||
| 262 | //TODO::Need To Code Dspan Logic as per discussion | 273 | //TODO::Need To Code Dspan Logic as per discussion |
| 263 | //if($dspan!="")$dialline=$dialline->where('dspan','=',$dspan)->where('id','<=','30'); | 274 | //if($dspan!="")$dialline=$dialline->where('dspan','=',$dspan)->where('id','<=','30'); |
| 264 | $dialline=$dialline->orderBy('updated_at','ASC')->first(); | 275 | //$dialline=$dialline->orderBy('id','ASC')->first(); |
| 265 | 276 | ||
| 266 | if(!empty($dialline)) | 277 | if(!empty($dialline)) |
| 267 | { | 278 | { |
| ... | @@ -277,16 +288,17 @@ class CreateCall extends Command { | ... | @@ -277,16 +288,17 @@ class CreateCall extends Command { |
| 277 | $callerid=""; | 288 | $callerid=""; |
| 278 | $wakka = new KHRMSLib(); | 289 | $wakka = new KHRMSLib(); |
| 279 | 290 | ||
| 280 | //TODO::Need To Add Sequence Logic Here | 291 | $gz = new DialerController(); |
| 281 | $users=$wakka->getPersons("client='$client' and status='New' and mobile!='' limit 1"); | 292 | $users= $gz->getCallSequencing(1,$client); |
| 282 | 293 | ||
| 283 | if(sizeof($users)>=1) | 294 | if(sizeof($users)>=1) |
| 284 | { | 295 | { |
| 285 | $record=$wakka->getPerson($users[0]['id']); | 296 | $record=$wakka->getPerson($users[0]['id'],$client); |
| 286 | if($record) | 297 | if($record) |
| 287 | { | 298 | { |
| 288 | $record["peopledata"]["status"]="AutoCall"; | 299 | $record["peopledata"]["status"]="AutoCall"; |
| 289 | $wakka->setPerson($users[0]['id'],$record); | 300 | $wakka->setPerson($users[0]['id'],$record,$client); |
| 301 | DB::table('records_'.$client)->where('id',$users[0]['id'])->update(['filter_condition'=>'2','modified'=>date("Y-m-d H:i:s")]); | ||
| 290 | } | 302 | } |
| 291 | 303 | ||
| 292 | $dialline->user_id=$user_id; | 304 | $dialline->user_id=$user_id; |
| ... | @@ -303,6 +315,7 @@ class CreateCall extends Command { | ... | @@ -303,6 +315,7 @@ class CreateCall extends Command { |
| 303 | $crmcall->user_id=0; | 315 | $crmcall->user_id=0; |
| 304 | $crmcall->sipid_id=0; | 316 | $crmcall->sipid_id=0; |
| 305 | $crmcall->crm_id=$users[0]['id']; | 317 | $crmcall->crm_id=$users[0]['id']; |
| 318 | //$crmcall->lan=$users[0]['lan']; | ||
| 306 | $crmcall->client=$users[0]['client']; | 319 | $crmcall->client=$users[0]['client']; |
| 307 | $crmcall->department=$users[0]['department']; | 320 | $crmcall->department=$users[0]['department']; |
| 308 | $crmcall->state='New'; | 321 | $crmcall->state='New'; |
| ... | @@ -328,7 +341,7 @@ class CreateCall extends Command { | ... | @@ -328,7 +341,7 @@ class CreateCall extends Command { |
| 328 | 341 | ||
| 329 | public function getSpanCount() | 342 | public function getSpanCount() |
| 330 | { | 343 | { |
| 331 | $spanArr = array("span1" => 30, "span2" => 0, "span3" => 0, "span4" => 0); | 344 | $spanArr = array("span1" => 30, "span2" => 30, "span3" => 30, "span4" => 30); |
| 332 | 345 | ||
| 333 | $cnt = array_sum($spanArr); | 346 | $cnt = array_sum($spanArr); |
| 334 | 347 | ... | ... |
| ... | @@ -45,14 +45,14 @@ class CreportEight extends Command { | ... | @@ -45,14 +45,14 @@ class CreportEight extends Command { |
| 45 | 45 | ||
| 46 | $tcol=0;$fieldsarr=array();$extrahdrarr=array(); | 46 | $tcol=0;$fieldsarr=array();$extrahdrarr=array(); |
| 47 | $central_ip=env('central_ip'); | 47 | $central_ip=env('central_ip'); |
| 48 | $server_ip=env('app_ip'); | 48 | $server_ip=env('DB_HOST'); |
| 49 | $calllog_report = "calllog_report_".$date; | 49 | $calllog_report = "calllog_report_".$date; |
| 50 | $conn = array( | 50 | $conn = array( |
| 51 | 'driver' => 'mysql', | 51 | 'driver' => 'mysql', |
| 52 | 'host' => $central_ip, | 52 | 'host' => $central_ip, |
| 53 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 53 | 'database' => env('CENTRAL_DB'), |
| 54 | 'username' => env('DB_USERNAME', 'root'), | 54 | 'username' => env('CENTRAL_USERNAME'), |
| 55 | 'password' => env('DB_PASSWORD', ''), | 55 | 'password' => env('CENTRAL_PASSWORD'), |
| 56 | 'charset' => 'utf8', | 56 | 'charset' => 'utf8', |
| 57 | 'collation' => 'utf8_unicode_ci', | 57 | 'collation' => 'utf8_unicode_ci', |
| 58 | 'prefix' => '', | 58 | 'prefix' => '', | ... | ... |
| ... | @@ -53,9 +53,9 @@ class CreportNine extends Command { | ... | @@ -53,9 +53,9 @@ class CreportNine extends Command { |
| 53 | $conn = array( | 53 | $conn = array( |
| 54 | 'driver' => 'mysql', | 54 | 'driver' => 'mysql', |
| 55 | 'host' => $central_ip, | 55 | 'host' => $central_ip, |
| 56 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 56 | 'database' => env('CENTRAL_DB'), |
| 57 | 'username' => env('DB_USERNAME', 'root'), | 57 | 'username' => env('CENTRAL_USERNAME'), |
| 58 | 'password' => env('DB_PASSWORD', ''), | 58 | 'password' => env('CENTRAL_PASSWORD'), |
| 59 | 'charset' => 'utf8', | 59 | 'charset' => 'utf8', |
| 60 | 'collation' => 'utf8_unicode_ci', | 60 | 'collation' => 'utf8_unicode_ci', |
| 61 | 'prefix' => '', | 61 | 'prefix' => '', | ... | ... |
| 1 | <?php namespace App\Console\Commands; | ||
| 2 | |||
| 3 | use Illuminate\Console\Command; | ||
| 4 | //use Mail; | ||
| 5 | use DB; | ||
| 6 | use Config; | ||
| 7 | |||
| 8 | use App\Models\User; | ||
| 9 | use App\Models\Accesslog; | ||
| 10 | |||
| 11 | use App\Models\CRMCall; | ||
| 12 | use Schema; | ||
| 13 | use PDO; | ||
| 14 | |||
| 15 | use Illuminate\Database\Schema\Blueprint; | ||
| 16 | |||
| 17 | class CreportTen extends Command { | ||
| 18 | |||
| 19 | /** | ||
| 20 | * The console command name. | ||
| 21 | * | ||
| 22 | * @var string | ||
| 23 | */ | ||
| 24 | protected $signature = 'CreportTen'; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * The console command description. | ||
| 28 | * | ||
| 29 | * @var string | ||
| 30 | */ | ||
| 31 | protected $description = 'App Main Daily Task for CreportTen'; | ||
| 32 | |||
| 33 | /** | ||
| 34 | * Execute the console command. | ||
| 35 | * | ||
| 36 | * @return mixed | ||
| 37 | */ | ||
| 38 | public function handle() | ||
| 39 | { | ||
| 40 | $nowts=time(); | ||
| 41 | $date=date('F_Y'); | ||
| 42 | echo "\n".date('Y-m-d H:i:s')."\n"; | ||
| 43 | |||
| 44 | $logdate=strtotime('0 day'); | ||
| 45 | |||
| 46 | $tcol=0;$fieldsarr=array();$extrahdrarr=array(); | ||
| 47 | $central_ip=env('central_ip'); | ||
| 48 | $server_ip=env('app_ip'); | ||
| 49 | //$calllog_report = "calllog_report_".date("d_m_Y"); | ||
| 50 | $calllog_report = "calllog_report_test"; | ||
| 51 | $conn = array( | ||
| 52 | 'driver' => 'mysql', | ||
| 53 | 'host' => $central_ip, | ||
| 54 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | ||
| 55 | 'username' => env('DB_USERNAME', 'root'), | ||
| 56 | 'password' => env('DB_PASSWORD', ''), | ||
| 57 | 'charset' => 'utf8', | ||
| 58 | 'collation' => 'utf8_unicode_ci', | ||
| 59 | 'prefix' => '', | ||
| 60 | 'options' => array( | ||
| 61 | PDO::ATTR_TIMEOUT => 5, | ||
| 62 | ), | ||
| 63 | ); | ||
| 64 | Config::set("database.connections.conn", $conn); | ||
| 65 | |||
| 66 | DB::connection("conn")->getDatabaseName(); | ||
| 67 | |||
| 68 | $serverclist=DB::connection("conn")->select(DB::raw("select id from server_details where server_ip='$server_ip'")); | ||
| 69 | $server_id=$serverclist[0]->id; | ||
| 70 | if($server_id<10){ | ||
| 71 | $server_id="0".$server_id; | ||
| 72 | } | ||
| 73 | |||
| 74 | |||
| 75 | $maxid=DB::connection("conn")->select(DB::raw("SELECT max(crmcall_id) as maxid from $calllog_report where server='$server_id'")); | ||
| 76 | |||
| 77 | $maxids=$maxid[0]->maxid; | ||
| 78 | echo "Maxid".$maxids; | ||
| 79 | |||
| 80 | //$alist=DB::select(DB::raw("SELECT * from crmcalls_archive where created_at>'2018-06-01' and created_at<'2018-07-01'")); | ||
| 81 | //$alist=DB::select(DB::raw("SELECT * from crmcalls where id>'$maxids' and created_at>'".date("Y-m-d")."' and created_at<'".date("Y-m-d H:i:s",$logdate-(60*60))."'")); | ||
| 82 | |||
| 83 | $alist=DB::select(DB::raw("SELECT * from crmcalls where id>'$maxids' and created_at<'".date("Y-m-d H:i:s",$logdate-(60*60))."'")); | ||
| 84 | |||
| 85 | $userarr=array(); | ||
| 86 | foreach($alist as $aline) | ||
| 87 | { | ||
| 88 | $setstrarr=array(); | ||
| 89 | |||
| 90 | |||
| 91 | $clientcode="";$currentstatus="";$legalstatus="";$record_id=""; | ||
| 92 | if($aline->crm_id>0) | ||
| 93 | { | ||
| 94 | $user=DB::select(DB::raw("select id,clientcode,currentstatus,legalstatus from records where id='".$aline->crm_id."' limit 1;")); | ||
| 95 | if(isset($user[0])) | ||
| 96 | { | ||
| 97 | $record_id=$user[0]->id; | ||
| 98 | $clientcode=$user[0]->clientcode; | ||
| 99 | $currentstatus=$user[0]->currentstatus; | ||
| 100 | $legalstatus=$user[0]->legalstatus; | ||
| 101 | } | ||
| 102 | } | ||
| 103 | $tpostdata=json_decode($aline->data,true); | ||
| 104 | $fulldate=date("Y-m-d H:i:s",strtotime($aline->created_at)+330*60); | ||
| 105 | $talktime=$aline->talkSec+$aline->recstartSec+$aline->recendSec; | ||
| 106 | $length=round(($aline->waitSec+$aline->callSec+$talktime+$aline->dispoSec)/1000,2); | ||
| 107 | |||
| 108 | if(!isset($userarr[$aline->user_id])&&$aline->user_id>0)$userarr[$aline->user_id]=User::find($aline->user_id); | ||
| 109 | $dispname="";if(isset($userarr[$aline->user_id]))$dispname=$userarr[$aline->user_id]->dispname(); | ||
| 110 | $username="";if(isset($userarr[$aline->user_id]))$username=$userarr[$aline->user_id]->username; | ||
| 111 | $globalid=$server_id.$record_id; | ||
| 112 | $setstrarr[]="server='$server_id'"; | ||
| 113 | $setstrarr[]="record_id='$record_id'"; | ||
| 114 | $setstrarr[]="crmcall_id='$aline->id'"; | ||
| 115 | $setstrarr[]="globalid='$globalid'"; | ||
| 116 | $setstrarr[]="created_at='$aline->created_at'"; | ||
| 117 | $setstrarr[]="start='$fulldate'"; | ||
| 118 | $setstrarr[]="length='$length'"; | ||
| 119 | $setstrarr[]="user='$username'"; | ||
| 120 | $setstrarr[]="name='$dispname'"; | ||
| 121 | $setstrarr[]="dispo='$aline->userstatus'"; | ||
| 122 | $setstrarr[]="subdispo='$aline->usersubstatus'"; | ||
| 123 | $setstrarr[]="callback='$aline->usercallback'"; | ||
| 124 | |||
| 125 | $setstrarr[]="number='$aline->number'"; | ||
| 126 | $setstrarr[]="clientcode='$clientcode'"; | ||
| 127 | $setstrarr[]="currentstatus='$currentstatus'"; | ||
| 128 | $setstrarr[]="legalstatus='$legalstatus'"; | ||
| 129 | $setstrarr[]="client='$aline->client'"; | ||
| 130 | $setstrarr[]="department='$aline->department'"; | ||
| 131 | $setstrarr[]="state='$aline->state'"; | ||
| 132 | $setstrarr[]="hsource='$aline->hsource'"; | ||
| 133 | |||
| 134 | $setstrarr[]="type='$aline->type'"; | ||
| 135 | $setstrarr[]="status='$aline->status'"; | ||
| 136 | $setstrarr[]="statuscode='$aline->statuscode'"; | ||
| 137 | $setstrarr[]="statusstr='$aline->substatus'"; | ||
| 138 | $setstrarr[]="dialline='$aline->dialline_id'"; | ||
| 139 | $setstrarr[]="did='$aline->did'"; | ||
| 140 | $setstrarr[]="waitsec='".round($aline->waitSec/1000,2)."'"; | ||
| 141 | $setstrarr[]="callsec='".round($aline->callSec/1000,2)."'"; | ||
| 142 | $setstrarr[]="talksec='".round($talktime/1000,2)."'"; | ||
| 143 | $setstrarr[]="disposec='".round($aline->dispoSec/1000,2)."'"; | ||
| 144 | $setstrarr[]="remarks='".str_replace("'","",$aline->userremarks)."'"; | ||
| 145 | $setstrarr[]="userdata='$aline->userdata'"; | ||
| 146 | $setstrarr[]="attempt='$aline->attempt'"; | ||
| 147 | $setstrarr[]="priority='$aline->priority'"; | ||
| 148 | $setstrarr[]="question='$aline->question'"; | ||
| 149 | |||
| 150 | $setstr=implode(",",$setstrarr); | ||
| 151 | DB::connection("conn")->insert(DB::raw("insert into ".$calllog_report." set $setstr")); | ||
| 152 | //DB::connection("conn")->update(DB::raw("UPDATE ".$calllog_report." as ca INNER JOIN crmcalls as c on ca.crmcall_id = c.id set ca.state = c.state,ca.statuscode = c.statuscode,ca.status = c.status,ca.substatus = c.substatus,ca.callSec = c.callSec,ca.ts_Talk = c.ts_Talk,ca.ts_Recstart = c.ts_Recstart,ca.ts_Recend = c.ts_Recend,ca.ts_Dispo = c.ts_Dispo,ca.ts_Close = c.ts_Close,ca.dispoSec = c.dispoSec,ca.recstartSec=c.recstartSec,ca.data = c.data,ca.recsize = c.recsize,ca.userstatus = c.userstatus,ca.usersubstatus = c.usersubstatus,ca.usercallback = c.usercallback ,ca.userremarks = c.userremarks,ca.attempt = c.attempt,ca.priority = c.priority,ca.question = c.question")); | ||
| 153 | } | ||
| 154 | echo "AfterUploadingData=".date('Y-m-d H:i:s'); | ||
| 155 | } | ||
| 156 | } | ||
| 157 | |||
| 158 |
| ... | @@ -98,9 +98,9 @@ class KstychDaily extends Command { | ... | @@ -98,9 +98,9 @@ class KstychDaily extends Command { |
| 98 | $conn = array( | 98 | $conn = array( |
| 99 | 'driver' => 'mysql', | 99 | 'driver' => 'mysql', |
| 100 | 'host' => $server, | 100 | 'host' => $server, |
| 101 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 101 | 'database' => env('CENTRAL_DB'), |
| 102 | 'username' => env('DB_USERNAME', 'root'), | 102 | 'username' => env('CENTRAL_USERNAME'), |
| 103 | 'password' => env('DB_PASSWORD', ''), | 103 | 'password' => env('CENTRAL_PASSWORD'), |
| 104 | 'charset' => 'utf8', | 104 | 'charset' => 'utf8', |
| 105 | 'collation' => 'utf8_unicode_ci', | 105 | 'collation' => 'utf8_unicode_ci', |
| 106 | 'prefix' => '', | 106 | 'prefix' => '', | ... | ... |
| ... | @@ -57,13 +57,13 @@ class PredictiveCallHangUp extends Command { | ... | @@ -57,13 +57,13 @@ class PredictiveCallHangUp extends Command { |
| 57 | public function runHangUp() | 57 | public function runHangUp() |
| 58 | { | 58 | { |
| 59 | try { | 59 | try { |
| 60 | $breathingTime = 5; | 60 | $breathingTime = 30; |
| 61 | $avgringsec = 0; | 61 | $avgringsec = 30; |
| 62 | 62 | ||
| 63 | $avgringsec = Cutoff::select(DB::Raw('avg(avg_ring) as avgringsec'))->first(); | 63 | $avgringsec = Cutoff::select(DB::Raw('avg(avg_ring) as avgringsec'))->first(); |
| 64 | if($avgringsec)$avgringsec= $avgringsec->avgringsec; | 64 | if($avgringsec)$avgringsec= intval($avgringsec->avgringsec); |
| 65 | 65 | ||
| 66 | $diallines = Dialline::whereIn("status", ["Auto","AutoCall"])->where("conf","=","")->select('status','updated_at','channel','server')->get(); | 66 | $diallines = Dialline::whereIn("status", ["Auto","AutoCall"])->where("conf","=","")->select('src_channel','status','updated_at','channel','server')->get(); |
| 67 | 67 | ||
| 68 | foreach ($diallines as $dialline) { | 68 | foreach ($diallines as $dialline) { |
| 69 | 69 | ||
| ... | @@ -74,13 +74,12 @@ class PredictiveCallHangUp extends Command { | ... | @@ -74,13 +74,12 @@ class PredictiveCallHangUp extends Command { |
| 74 | $newqueue->hangupChannelS($dialline->channel,$dialline->server); | 74 | $newqueue->hangupChannelS($dialline->channel,$dialline->server); |
| 75 | } | 75 | } |
| 76 | elseif($dialline->status == 'AutoCall' && $lastUpdatedTime > ($avgringsec+$breathingTime)) { | 76 | elseif($dialline->status == 'AutoCall' && $lastUpdatedTime > ($avgringsec+$breathingTime)) { |
| 77 | $newqueue->hangupChannelS($dialline->channel,$dialline->server); | 77 | $newqueue->hangupChannelS($dialline->src_channel,$dialline->server); |
| 78 | } | 78 | } |
| 79 | } | 79 | } |
| 80 | } catch (Exception $e) { | 80 | } catch (Exception $e) { |
| 81 | Log::useFiles(storage_path()."/logs/predictive_".date("Y_m_d").".log"); | 81 | Log::useFiles(storage_path()."/logs/predictive_".date("Y_m_d").".log"); |
| 82 | Log::error($e); | 82 | Log::error($e); |
| 83 | continue; | ||
| 84 | } | 83 | } |
| 85 | } | 84 | } |
| 86 | } | 85 | } | ... | ... |
| 1 | <?php namespace App\Console\Commands; | ||
| 2 | |||
| 3 | use Illuminate\Console\Command; | ||
| 4 | //use Mail; | ||
| 5 | use DB; | ||
| 6 | use Config; | ||
| 7 | |||
| 8 | use App\Models\User; | ||
| 9 | use App\Models\Accesslog; | ||
| 10 | |||
| 11 | use App\Models\CRMCall; | ||
| 12 | use Schema; | ||
| 13 | use PDO; | ||
| 14 | |||
| 15 | use Illuminate\Database\Schema\Blueprint; | ||
| 16 | |||
| 17 | class Smsreport extends Command { | ||
| 18 | |||
| 19 | /** | ||
| 20 | * The console command name. | ||
| 21 | * | ||
| 22 | * @var string | ||
| 23 | */ | ||
| 24 | protected $signature = 'Smsreport'; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * The console command description. | ||
| 28 | * | ||
| 29 | * @var string | ||
| 30 | */ | ||
| 31 | protected $description = 'App Main Daily Task for Smsreport'; | ||
| 32 | |||
| 33 | /** | ||
| 34 | * Execute the console command. | ||
| 35 | * | ||
| 36 | * @return mixed | ||
| 37 | */ | ||
| 38 | public function handle() | ||
| 39 | { | ||
| 40 | $nowts=time(); | ||
| 41 | $date=date('F_Y'); | ||
| 42 | echo "\n".date('Y-m-d H:i:s')."\n"; | ||
| 43 | |||
| 44 | $logdate=strtotime('0 day'); | ||
| 45 | |||
| 46 | $tcol=0;$fieldsarr=array();$extrahdrarr=array(); | ||
| 47 | $central_ip=env('central_ip'); | ||
| 48 | $server_ip=env('app_ip'); | ||
| 49 | $calllog_report = "calllog_report_".$date; | ||
| 50 | $conn = array( | ||
| 51 | 'driver' => 'mysql', | ||
| 52 | 'host' => $central_ip, | ||
| 53 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | ||
| 54 | 'username' => env('DB_USERNAME', 'root'), | ||
| 55 | 'password' => env('DB_PASSWORD', ''), | ||
| 56 | 'charset' => 'utf8', | ||
| 57 | 'collation' => 'utf8_unicode_ci', | ||
| 58 | 'prefix' => '', | ||
| 59 | 'options' => array( | ||
| 60 | PDO::ATTR_TIMEOUT => 5, | ||
| 61 | ), | ||
| 62 | ); | ||
| 63 | Config::set("database.connections.conn", $conn); | ||
| 64 | |||
| 65 | DB::connection("conn")->getDatabaseName(); | ||
| 66 | |||
| 67 | $serverclist=DB::connection("conn")->select(DB::raw("select id from server_details where server_ip='$server_ip'")); | ||
| 68 | $server_id=str_pad($serverclist[0]->id, 2, '0', STR_PAD_LEFT); | ||
| 69 | |||
| 70 | $maxid=DB::connection("conn")->select(DB::raw("SELECT max(sms_id) as maxid from sms_report where server='$server_id'")); | ||
| 71 | |||
| 72 | $maxids=$maxid[0]->maxid; | ||
| 73 | |||
| 74 | $alist=DB::select(DB::raw("SELECT * from sms_log where id>'$maxids'")); | ||
| 75 | $iii=0; | ||
| 76 | $shortinsert=""; | ||
| 77 | foreach($alist as $aline) | ||
| 78 | { | ||
| 79 | $iii++; | ||
| 80 | $server = $server_id; | ||
| 81 | $sms_id = $aline->id; | ||
| 82 | $created_at = $aline->created_at; | ||
| 83 | $message_time = date("Y-m-d H:i:s",strtotime($aline->created_at)+330*60); | ||
| 84 | $server_ip = $aline->server_ip; | ||
| 85 | $call_id = $aline->call_id; | ||
| 86 | $agent_name = $aline->agent_name; | ||
| 87 | $subdispo = $aline->subdispo; | ||
| 88 | $number = $aline->number; | ||
| 89 | $message = $aline->message; | ||
| 90 | $response = $aline->response; | ||
| 91 | |||
| 92 | $shortinsert.="('$server', '$sms_id','$created_at', '$message_time', '$server_ip', '$call_id', '$agent_name', '$subdispo', '$number', '$message', '$response'),"; | ||
| 93 | |||
| 94 | if($iii%50==0 || $iii == count($alist)){ | ||
| 95 | |||
| 96 | $shortinsert=substr($shortinsert,0,-1); | ||
| 97 | DB::connection("conn")->insert(DB::raw("INSERT INTO sms_report (`server`, `sms_id`, `created_at`, `message_time`, `server_ip`, `call_id`, `agent_name`, `subdispo`, `number`, `message`, `response`) VALUES $shortinsert")); | ||
| 98 | $shortinsert=""; | ||
| 99 | } | ||
| 100 | } | ||
| 101 | echo "\n".date('Y-m-d H:i:s')."\n"; | ||
| 102 | DB::connection("conn")->disconnect(); | ||
| 103 | } | ||
| 104 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | <?php namespace App\Console\Commands; | ||
| 2 | |||
| 3 | use Illuminate\Console\Command; | ||
| 4 | //use Mail; | ||
| 5 | use DB; | ||
| 6 | use Config; | ||
| 7 | |||
| 8 | use App\Models\User; | ||
| 9 | use App\Models\Accesslog; | ||
| 10 | |||
| 11 | use App\Models\CRMCall; | ||
| 12 | use Schema; | ||
| 13 | use PDO; | ||
| 14 | |||
| 15 | use Illuminate\Database\Schema\Blueprint; | ||
| 16 | |||
| 17 | class Smsreport extends Command { | ||
| 18 | |||
| 19 | /** | ||
| 20 | * The console command name. | ||
| 21 | * | ||
| 22 | * @var string | ||
| 23 | */ | ||
| 24 | protected $signature = 'Smsreport'; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * The console command description. | ||
| 28 | * | ||
| 29 | * @var string | ||
| 30 | */ | ||
| 31 | protected $description = 'App Main Daily Task for Smsreport'; | ||
| 32 | |||
| 33 | /** | ||
| 34 | * Execute the console command. | ||
| 35 | * | ||
| 36 | * @return mixed | ||
| 37 | */ | ||
| 38 | public function handle() | ||
| 39 | { | ||
| 40 | $nowts=time(); | ||
| 41 | $date=date('F_Y'); | ||
| 42 | echo "\n".date('Y-m-d H:i:s')."\n"; | ||
| 43 | |||
| 44 | $logdate=strtotime('0 day'); | ||
| 45 | |||
| 46 | $tcol=0;$fieldsarr=array();$extrahdrarr=array(); | ||
| 47 | $central_ip=env('central_ip'); | ||
| 48 | $server_ip=env('app_ip'); | ||
| 49 | $calllog_report = "calllog_report_".$date; | ||
| 50 | $conn = array( | ||
| 51 | 'driver' => 'mysql', | ||
| 52 | 'host' => $central_ip, | ||
| 53 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | ||
| 54 | 'username' => env('DB_USERNAME', 'root'), | ||
| 55 | 'password' => env('DB_PASSWORD', ''), | ||
| 56 | 'charset' => 'utf8', | ||
| 57 | 'collation' => 'utf8_unicode_ci', | ||
| 58 | 'prefix' => '', | ||
| 59 | 'options' => array( | ||
| 60 | PDO::ATTR_TIMEOUT => 5, | ||
| 61 | ), | ||
| 62 | ); | ||
| 63 | Config::set("database.connections.conn", $conn); | ||
| 64 | |||
| 65 | DB::connection("conn")->getDatabaseName(); | ||
| 66 | |||
| 67 | $serverclist=DB::connection("conn")->select(DB::raw("select id from server_details where server_ip='$server_ip'")); | ||
| 68 | $server_id=str_pad($serverclist[0]->id, 2, '0', STR_PAD_LEFT); | ||
| 69 | |||
| 70 | $maxid=DB::connection("conn")->select(DB::raw("SELECT max(sms_id) as maxid from sms_report where server='$server_id'")); | ||
| 71 | |||
| 72 | $maxids=$maxid[0]->maxid; | ||
| 73 | |||
| 74 | $alist=DB::select(DB::raw("SELECT * from sms_log where id>'$maxids'")); | ||
| 75 | $iii=0; | ||
| 76 | $shortinsert=""; | ||
| 77 | foreach($alist as $aline) | ||
| 78 | { | ||
| 79 | $iii++; | ||
| 80 | $server = $server_id; | ||
| 81 | $sms_id = $aline->id; | ||
| 82 | $created_at = $aline->created_at; | ||
| 83 | $message_time = date("Y-m-d H:i:s",strtotime($aline->created_at)+330*60); | ||
| 84 | $server_ip = $aline->server_ip; | ||
| 85 | $call_id = $aline->call_id; | ||
| 86 | $agent_name = $aline->agent_name; | ||
| 87 | $subdispo = $aline->subdispo; | ||
| 88 | $number = $aline->number; | ||
| 89 | $message = $aline->message; | ||
| 90 | $response = $aline->response; | ||
| 91 | |||
| 92 | $shortinsert.="('$server', '$sms_id','$created_at', '$message_time', '$server_ip', '$call_id', '$agent_name', '$subdispo', '$number', '$message', '$response'),"; | ||
| 93 | |||
| 94 | if($iii%50==0 || $iii == count($alist)){ | ||
| 95 | |||
| 96 | $shortinsert=substr($shortinsert,0,-1); | ||
| 97 | DB::connection("conn")->insert(DB::raw("INSERT INTO sms_report (`server`, `sms_id`, `created_at`, `message_time`, `server_ip`, `call_id`, `agent_name`, `subdispo`, `number`, `message`, `response`) VALUES $shortinsert")); | ||
| 98 | $shortinsert=""; | ||
| 99 | } | ||
| 100 | } | ||
| 101 | echo "\n".date('Y-m-d H:i:s')."\n"; | ||
| 102 | DB::connection("conn")->disconnect(); | ||
| 103 | } | ||
| 104 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | <?php namespace App\Console\Commands; | ||
| 2 | |||
| 3 | use Illuminate\Console\Command; | ||
| 4 | use DB; | ||
| 5 | use Config; | ||
| 6 | |||
| 7 | use App\Models\User; | ||
| 8 | use App\Models\Accesslog; | ||
| 9 | |||
| 10 | use App\Models\CRMCall; | ||
| 11 | use Schema; | ||
| 12 | use PDO; | ||
| 13 | |||
| 14 | use Illuminate\Database\Schema\Blueprint; | ||
| 15 | |||
| 16 | class UserlogOne extends Command { | ||
| 17 | |||
| 18 | /** | ||
| 19 | * The console command name. | ||
| 20 | * | ||
| 21 | * @var string | ||
| 22 | */ | ||
| 23 | protected $signature = 'UserlogOne'; | ||
| 24 | |||
| 25 | /** | ||
| 26 | * The console command description. | ||
| 27 | * | ||
| 28 | * @var string | ||
| 29 | */ | ||
| 30 | protected $description = 'UserlogOne'; | ||
| 31 | |||
| 32 | /** | ||
| 33 | * Execute the console command. | ||
| 34 | * | ||
| 35 | * @return mixed | ||
| 36 | */ | ||
| 37 | public function handle() | ||
| 38 | { | ||
| 39 | $nowts=time(); | ||
| 40 | echo "\n".date('Y-m-d')."\n"; | ||
| 41 | |||
| 42 | if(env('app_ip')=="10.125.14.127") | ||
| 43 | { | ||
| 44 | |||
| 45 | |||
| 46 | $offline=array(); | ||
| 47 | $arr=Config::get("app.hdfcnodes"); | ||
| 48 | $logdate=strtotime('-1 day'); | ||
| 49 | $userlogsTable = "userlogs_".date("d_m_Y",$logdate); | ||
| 50 | //echo "\n".$userlogsTable."\n"; | ||
| 51 | |||
| 52 | //$slist=DB::select(DB::raw("select * from server_details where type='COP' and id!='32'")); | ||
| 53 | $slist=DB::select(DB::raw("select * from server_details where id>11")); | ||
| 54 | $server_ip=''; | ||
| 55 | $std_code=''; | ||
| 56 | $conn=''; | ||
| 57 | foreach($slist as $sline) | ||
| 58 | { | ||
| 59 | $tcol=0;$fieldsarr=array();$extrahdrarr=array(); | ||
| 60 | $server_ip=$sline->server_ip; | ||
| 61 | $server_id=$sline->id; | ||
| 62 | $std_code=$sline->std_code; | ||
| 63 | |||
| 64 | $conn = array( | ||
| 65 | 'driver' => 'mysql', | ||
| 66 | 'host' => $server_ip, | ||
| 67 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | ||
| 68 | 'username' => env('DB_USERNAME', 'root'), | ||
| 69 | 'password' => env('DB_PASSWORD', ''), | ||
| 70 | 'charset' => 'utf8', | ||
| 71 | 'collation' => 'utf8_unicode_ci', | ||
| 72 | 'prefix' => '', | ||
| 73 | 'options' => array( | ||
| 74 | PDO::ATTR_TIMEOUT => 5, | ||
| 75 | ), | ||
| 76 | ); | ||
| 77 | Config::set("database.connections.conn", $conn); | ||
| 78 | |||
| 79 | |||
| 80 | if(DB::connection("conn")->getDatabaseName()) | ||
| 81 | { | ||
| 82 | |||
| 83 | echo ",".$server_ip; | ||
| 84 | |||
| 85 | $i=0; | ||
| 86 | |||
| 87 | $ulist=DB::connection("conn")->select(DB::raw("select * from users WHERE 1")); | ||
| 88 | foreach($ulist as $uline) { | ||
| 89 | $users[$uline->id] = $uline->username; | ||
| 90 | } | ||
| 91 | |||
| 92 | if($alist=DB::connection("conn")->select(DB::raw("select * from userlogs WHERE created_at>'".date("Y-m-d",$logdate)."' and created_at<'".date("Y-m-d",$logdate+24*60*60)."'"))){ | ||
| 93 | |||
| 94 | //if($alist=DB::connection("conn")->select(DB::raw("select * from userlogs WHERE created_at>'2017-09-01' and created_at<'2017-10-01'"))){ | ||
| 95 | |||
| 96 | foreach($alist as $aline) { | ||
| 97 | |||
| 98 | $i++; | ||
| 99 | $global_id = $server_id . $i; | ||
| 100 | |||
| 101 | $rowdata = array('server'=>$server_id,'server_ip'=>$server_ip,'global_id'=>$global_id,'id'=>$aline->id, | ||
| 102 | 'created_at'=>$aline->created_at,'updated_at'=>$aline->updated_at,'user_id'=>$aline->user_id,'user'=>$users[$aline->user_id], | ||
| 103 | 'startdate'=>$aline->startdate,'starttime'=>$aline->starttime,'enddate'=>$aline->enddate,'endtime'=>$aline->endtime, | ||
| 104 | 'durationsec'=>$aline->durationsec,'data'=>$aline->data,'group'=>$aline->group,'login'=>'','dialnext'=>'','dialnext-agentbriefing'=>'','dialnext-downtime'=>'','dialnext-floorannouncements'=>'','dialnext-incoming'=>'','dialnext-lunchbreak'=>'','dialnext-manual'=>'','dialnext-notready'=>'','dialnext-qualityfeedback'=>'','dialnext-teabreak'=>'','dialnext-teammeeting'=>'','dialnext-utilitybreak'=>'','manual'=>'','manual-agentbriefing'=>'','manual-agentbriefing'=>'','manual-downtime'=>'','manual-floorannouncements'=>'','manual-incoming'=>'','manual-lunchbreak'=>'','manual-manual'=>'','manual-notready'=>'','manual-qualityfeedback'=>'','manual-teabreak'=>'','manual-teammeeting'=>'','manual-utilitybreak'=>'','paused'=>'','paused-agentbriefing'=>'','paused-downtime'=>'','paused-floorannouncements'=>'','paused-incoming'=>'','paused-lunchbreak'=>'','paused-manual'=>'','paused-notready'=>'','paused-qualityfeedback'=>'','paused-teabreak'=>'','paused-teammeeting'=>'','paused-utilitybreak'=>'','paused-autowrapup'=>'','paused-wrapup'=>'','progressive'=>'','progressive-agentbriefing'=>'','progressive-agentbriefing'=>'','progressive-downtime'=>'','progressive-floorannouncements'=>'','progressive-incoming'=>'','progressive-lunchbreak'=>'','progressive-manual'=>'','progressive-notready'=>'','progressive-qualityfeedback'=>'','progressive-teabreak'=>'','progressive-teammeeting'=>'','progressive-utilitybreak'=>'','ready-incoming'=>'' | ||
| 105 | ); | ||
| 106 | |||
| 107 | $data=json_decode($aline->data,true); | ||
| 108 | |||
| 109 | foreach($data as $sipid=>$sdata) | ||
| 110 | { | ||
| 111 | $prets= isset($sdata[1]) ? $sdata[1] : (strtotime($aline->startdate . " " . $aline->starttime)+19600)*1000; | ||
| 112 | if(isset($sdata['states'])) | ||
| 113 | { | ||
| 114 | $previous="login"; | ||
| 115 | foreach($sdata['states'] as $fts=>$states) | ||
| 116 | { | ||
| 117 | if($states[0] != 1) | ||
| 118 | { | ||
| 119 | $rowdata[$previous] +=round(($fts-$prets)/1000,2); | ||
| 120 | |||
| 121 | $previous = (trim($states[1]) != '') ? strtolower($states[0]."-".$states[1]) : strtolower($states[0]); | ||
| 122 | $prets=$fts; | ||
| 123 | } | ||
| 124 | |||
| 125 | } | ||
| 126 | $rowdata[$previous] += round(($sdata['ts']-$prets)/1000,2); | ||
| 127 | } | ||
| 128 | } | ||
| 129 | $rowdata["login"] = $aline->durationsec; | ||
| 130 | |||
| 131 | $rowdata['not-ready']=$rowdata['paused-agentbriefing']+$rowdata['paused-autowrapup']+$rowdata['paused-downtime']+$rowdata['paused-floorannouncements']+$rowdata['paused-lunchbreak']+$rowdata['paused-notready']+$rowdata['paused-qualityfeedback']+$rowdata['paused-teammeeting']+$rowdata['paused-teabreak']+$rowdata['paused-utilitybreak']; | ||
| 132 | |||
| 133 | |||
| 134 | $key_value = ''; | ||
| 135 | foreach($rowdata AS $key=>$value) { | ||
| 136 | if($key != 1) | ||
| 137 | $key_value .= "`$key` = '$value', "; | ||
| 138 | } | ||
| 139 | |||
| 140 | $startTime=$aline->startdate." ".$aline->starttime; | ||
| 141 | $endTime=$aline->enddate." ".$aline->endtime; | ||
| 142 | |||
| 143 | $crmCalls=DB::connection("conn")->select(DB::raw("select user_id,type,ts_Wait,ts_Call,ts_Talk,ts_Recstart,ts_Recend,ts_Dispo,ts_Close from crmcalls WHERE updated_at>='".$startTime."' and updated_at<'".$endTime."' and user_id='".$aline->user_id."'")); | ||
| 144 | |||
| 145 | $ts_Wait=0;$ts_Call=0;$ts_Talk=0;$ts_Dispo=0; | ||
| 146 | $progTs_Wait=0;$progTs_Call=0;$progTs_Talk=0;$progTs_Dispo=0; | ||
| 147 | $manTs_Wait=0;$manTs_Call=0;$manTs_Talk=0;$manTs_Dispo=0; | ||
| 148 | $inbTs_Wait=0;$inbTs_Call=0;$inbTs_Talk=0;$inbTs_Dispo=0; | ||
| 149 | $tt_prog=0;$tt_man=0;$tt_inb=0; | ||
| 150 | |||
| 151 | if($crmCalls!=null){ | ||
| 152 | foreach($crmCalls as $crmCall){ | ||
| 153 | $ts_Wait += round(($crmCall->ts_Call - $crmCall->ts_Wait)/1000,2); | ||
| 154 | $ts_Call += round(($crmCall->ts_Talk - $crmCall->ts_Call)/1000,2); | ||
| 155 | $ts_Talk += round(($crmCall->ts_Dispo - $crmCall->ts_Talk)/1000,2); | ||
| 156 | $ts_Dispo += round(($crmCall->ts_Close - $crmCall->ts_Dispo)/1000,2); | ||
| 157 | |||
| 158 | if($crmCall->type == 'Progressive') | ||
| 159 | { | ||
| 160 | $progTs_Wait += round(($crmCall->ts_Call - $crmCall->ts_Wait)/1000,2); | ||
| 161 | $progTs_Call += round(($crmCall->ts_Talk - $crmCall->ts_Call)/1000,2); | ||
| 162 | $progTs_Talk += round(($crmCall->ts_Dispo - $crmCall->ts_Talk)/1000,2); | ||
| 163 | $progTs_Dispo += round(($crmCall->ts_Close - $crmCall->ts_Dispo)/1000,2); | ||
| 164 | } | ||
| 165 | |||
| 166 | if($crmCall->type == 'Manual') | ||
| 167 | { | ||
| 168 | $manTs_Wait += round(($crmCall->ts_Call - $crmCall->ts_Wait)/1000,2); | ||
| 169 | $manTs_Call += round(($crmCall->ts_Talk - $crmCall->ts_Call)/1000,2); | ||
| 170 | $manTs_Talk += round(($crmCall->ts_Dispo - $crmCall->ts_Talk)/1000,2); | ||
| 171 | $manTs_Dispo += round(($crmCall->ts_Close - $crmCall->ts_Dispo)/1000,2); | ||
| 172 | } | ||
| 173 | |||
| 174 | if($crmCall->type == 'Inbound') | ||
| 175 | { | ||
| 176 | $inbTs_Wait += round(($crmCall->ts_Call - $crmCall->ts_Wait)/1000,2); | ||
| 177 | $inbTs_Call += round(($crmCall->ts_Talk - $crmCall->ts_Call)/1000,2); | ||
| 178 | $inbTs_Talk += round(($crmCall->ts_Dispo - $crmCall->ts_Talk)/1000,2); | ||
| 179 | $inbTs_Dispo += round(($crmCall->ts_Close - $crmCall->ts_Dispo)/1000,2); | ||
| 180 | } | ||
| 181 | } | ||
| 182 | } | ||
| 183 | $tt_prog = $progTs_Wait + $progTs_Call + $progTs_Talk + $progTs_Dispo; | ||
| 184 | $tt_man = $manTs_Wait + $manTs_Call + $manTs_Talk + $manTs_Dispo; | ||
| 185 | $tt_inb = $inbTs_Wait + $inbTs_Call + $inbTs_Talk + $inbTs_Dispo; | ||
| 186 | $prod_TOS = $ts_Wait + $ts_Call + $ts_Talk + $ts_Dispo; | ||
| 187 | |||
| 188 | $key_value .= "`tt_prog` = '$tt_prog', "; | ||
| 189 | $key_value .= "`tt_man` = '$tt_man', "; | ||
| 190 | $key_value .= "`tt_inb` = '$tt_inb', "; | ||
| 191 | $key_value .= "`ts_Wait` = '$ts_Wait', "; | ||
| 192 | $key_value .= "`ts_Call` = '$ts_Call', "; | ||
| 193 | $key_value .= "`ts_Talk` = '$ts_Talk', "; | ||
| 194 | $key_value .= "`ts_Dispo` = '$ts_Dispo', "; | ||
| 195 | $key_value .= "`progts_Wait` = '$progTs_Wait', "; | ||
| 196 | $key_value .= "`progts_Call` = '$progTs_Call', "; | ||
| 197 | $key_value .= "`progts_Talk` = '$progTs_Talk', "; | ||
| 198 | $key_value .= "`progts_Dispo` = '$progTs_Dispo', "; | ||
| 199 | $key_value .= "`mants_Wait` = '$manTs_Wait', "; | ||
| 200 | $key_value .= "`mants_Call` = '$manTs_Call', "; | ||
| 201 | $key_value .= "`mants_Talk` = '$manTs_Talk', "; | ||
| 202 | $key_value .= "`mants_Dispo` = '$manTs_Dispo', "; | ||
| 203 | $key_value .= "`incts_Wait` = '$inbTs_Wait', "; | ||
| 204 | $key_value .= "`incts_Call` = '$inbTs_Call', "; | ||
| 205 | $key_value .= "`incts_Talk` = '$inbTs_Talk', "; | ||
| 206 | $key_value .= "`incts_Dispo` = '$inbTs_Dispo', "; | ||
| 207 | $key_value .= "`prod_tos` = '$prod_TOS', "; | ||
| 208 | |||
| 209 | $key_value = substr($key_value, 0, -2); | ||
| 210 | $userlogsTable = "userlogs_".date("d_m_Y",$logdate); | ||
| 211 | DB::insert(DB::raw("INSERT INTO ".$userlogsTable." SET $key_value")); | ||
| 212 | //DB::insert(DB::raw("INSERT INTO userlogs_050218 SET $key_value")); | ||
| 213 | } | ||
| 214 | DB::connection("conn")->disconnect(); | ||
| 215 | }else{ | ||
| 216 | DB::connection("conn")->disconnect(); | ||
| 217 | } | ||
| 218 | |||
| 219 | } | ||
| 220 | } | ||
| 221 | } | ||
| 222 | } | ||
| 223 | } |
This diff is collapsed.
Click to expand it.
| 1 | <?php namespace App\Console\Commands; | ||
| 2 | |||
| 3 | use Illuminate\Console\Command; | ||
| 4 | use DB; | ||
| 5 | use Config; | ||
| 6 | |||
| 7 | use App\Models\User; | ||
| 8 | use App\Models\Accesslog; | ||
| 9 | |||
| 10 | use App\Models\CRMCall; | ||
| 11 | use Schema; | ||
| 12 | use PDO; | ||
| 13 | |||
| 14 | use Illuminate\Database\Schema\Blueprint; | ||
| 15 | |||
| 16 | class Userlog_datavalidation extends Command { | ||
| 17 | |||
| 18 | /** | ||
| 19 | * The console command name. | ||
| 20 | * | ||
| 21 | * @var string | ||
| 22 | */ | ||
| 23 | protected $signature = 'Userlog_datavalidation'; | ||
| 24 | |||
| 25 | /** | ||
| 26 | * The console command description. | ||
| 27 | * | ||
| 28 | * @var string | ||
| 29 | */ | ||
| 30 | protected $description = 'Userlog_datavalidation'; | ||
| 31 | |||
| 32 | /** | ||
| 33 | * Execute the console command. | ||
| 34 | * | ||
| 35 | * @return mixed | ||
| 36 | */ | ||
| 37 | public function handle() | ||
| 38 | { | ||
| 39 | $nowts=time(); | ||
| 40 | echo "\n".date('Y-m-d')."\n"; | ||
| 41 | |||
| 42 | $logdate=strtotime('-1 day'); | ||
| 43 | $tcol=0;$fieldsarr=array();$extrahdrarr=array(); | ||
| 44 | $server_ip=env('app_ip'); | ||
| 45 | $central_ip=env('central_ip'); | ||
| 46 | |||
| 47 | $conn = array( | ||
| 48 | 'driver' => 'mysql', | ||
| 49 | 'host' => $central_ip, | ||
| 50 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | ||
| 51 | 'username' => env('DB_USERNAME', 'root'), | ||
| 52 | 'password' => env('DB_PASSWORD', ''), | ||
| 53 | 'charset' => 'utf8', | ||
| 54 | 'collation' => 'utf8_unicode_ci', | ||
| 55 | 'prefix' => '', | ||
| 56 | 'options' => array( | ||
| 57 | PDO::ATTR_TIMEOUT => 5, | ||
| 58 | ), | ||
| 59 | ); | ||
| 60 | Config::set("database.connections.conn", $conn); | ||
| 61 | if(DB::connection("conn")->getDatabaseName()) | ||
| 62 | { | ||
| 63 | $serverclist=DB::connection("conn")->select(DB::raw("select id from server_details where server_ip='$server_ip'")); | ||
| 64 | $server_id=$serverclist[0]->id; | ||
| 65 | if($server_id<10){ | ||
| 66 | $server_id="0".$server_id; | ||
| 67 | } | ||
| 68 | |||
| 69 | |||
| 70 | $i=0; | ||
| 71 | |||
| 72 | |||
| 73 | $ulist=DB::select(DB::raw("select * from users WHERE 1")); | ||
| 74 | foreach($ulist as $uline) { | ||
| 75 | $users[$uline->id] = $uline->username; | ||
| 76 | } | ||
| 77 | if($alist=DB::select(DB::raw("select * from userlogs WHERE created_at>'".date("Y-m-d",$logdate)."' and created_at<'".date("Y-m-d",$logdate+24*60*60)."'"))){ | ||
| 78 | |||
| 79 | |||
| 80 | foreach($alist as $aline) { | ||
| 81 | $i++; | ||
| 82 | $global_id = $server_id . $i; | ||
| 83 | if($aline->enddate=='0000-00-00'|| $aline->endtime=='00:00:00' || $aline->durationsec=='0') | ||
| 84 | { | ||
| 85 | $enddatetime=date("Y-m-d H:i:s",strtotime($aline->updated_at)); | ||
| 86 | $enddate=explode(" ",$enddatetime)[0]; | ||
| 87 | $endtime=explode(" ",$enddatetime)[1]; | ||
| 88 | $durationsec=date("Y-m-d H:i:s",strtotime($endtime-$aline->starttime)); | ||
| 89 | } | ||
| 90 | else | ||
| 91 | { | ||
| 92 | $enddate=$aline->enddate; | ||
| 93 | $endtime=$aline->endtime; | ||
| 94 | $durationsec=$aline->durationsec; | ||
| 95 | } | ||
| 96 | |||
| 97 | $rowdata = array('server'=>$server_id,'server_ip'=>$server_ip,'global_id'=>$global_id,'id'=>$aline->id, | ||
| 98 | 'created_at'=>$aline->created_at,'updated_at'=>$aline->updated_at,'user_id'=>$aline->user_id,'user'=>$users[$aline->user_id], | ||
| 99 | 'startdate'=>$aline->startdate,'starttime'=>$aline->starttime,'enddate'=>$enddate,'endtime'=>$endtime, | ||
| 100 | 'durationsec'=>$durationsec,'data'=>$aline->data,'group'=>$aline->group,'login'=>'','dialnext'=>'','dialnext-agentbriefing'=>'','dialnext-downtime'=>'','dialnext-floorannouncements'=>'','dialnext-incoming'=>'','dialnext-lunchbreak'=>'','dialnext-manual'=>'','dialnext-notready'=>'','dialnext-qualityfeedback'=>'','dialnext-teabreak'=>'','dialnext-teammeeting'=>'','dialnext-utilitybreak'=>'','manual'=>'','manual-agentbriefing'=>'','manual-agentbriefing'=>'','manual-downtime'=>'','manual-floorannouncements'=>'','manual-incoming'=>'','manual-lunchbreak'=>'','manual-manual'=>'','manual-notready'=>'','manual-qualityfeedback'=>'','manual-teabreak'=>'','manual-teammeeting'=>'','manual-utilitybreak'=>'','paused'=>'','paused-agentbriefing'=>'','paused-downtime'=>'','paused-floorannouncements'=>'','paused-incoming'=>'','paused-lunchbreak'=>'','paused-manual'=>'','paused-notready'=>'','paused-qualityfeedback'=>'','paused-teabreak'=>'','paused-teammeeting'=>'','paused-utilitybreak'=>'','paused-autowrapup'=>'','paused-wrapup'=>'','progressive'=>'','progressive-agentbriefing'=>'','progressive-agentbriefing'=>'','progressive-downtime'=>'','progressive-floorannouncements'=>'','progressive-incoming'=>'','progressive-lunchbreak'=>'','progressive-manual'=>'','progressive-notready'=>'','progressive-qualityfeedback'=>'','progressive-teabreak'=>'','progressive-teammeeting'=>'','progressive-utilitybreak'=>'','ready-incoming'=>'' | ||
| 101 | ); | ||
| 102 | |||
| 103 | $data=json_decode($aline->data,true); | ||
| 104 | foreach($data as $sipid=>$sdata) | ||
| 105 | { | ||
| 106 | $prets= isset($sdata[1]) ? $sdata[1] : (strtotime($aline->startdate . " " . $aline->starttime)+19600)*1000; | ||
| 107 | if(isset($sdata['states'])) | ||
| 108 | { | ||
| 109 | $previous="login"; | ||
| 110 | foreach($sdata['states'] as $fts=>$states) | ||
| 111 | { | ||
| 112 | if($states[0] != 1) | ||
| 113 | { | ||
| 114 | $rowdata[$previous] +=round(($fts-$prets)/1000,2); | ||
| 115 | |||
| 116 | $previous = (trim($states[1]) != '') ? strtolower($states[0]."-".$states[1]) : strtolower($states[0]); | ||
| 117 | $prets=$fts; | ||
| 118 | } | ||
| 119 | |||
| 120 | } | ||
| 121 | $rowdata[$previous] += round(($sdata['ts']-$prets)/1000,2); | ||
| 122 | } | ||
| 123 | } | ||
| 124 | $rowdata["login"] = $aline->durationsec; | ||
| 125 | |||
| 126 | $rowdata['not-ready']=$rowdata['paused-agentbriefing']+$rowdata['paused-autowrapup']+$rowdata['paused-downtime']+$rowdata['paused-floorannouncements']+$rowdata['paused-lunchbreak']+$rowdata['paused-notready']+$rowdata['paused-qualityfeedback']+$rowdata['paused-teammeeting']+$rowdata['paused-teabreak']+$rowdata['paused-utilitybreak']; | ||
| 127 | |||
| 128 | |||
| 129 | $key_value = ''; | ||
| 130 | |||
| 131 | |||
| 132 | $startTime=$aline->startdate." ".$aline->starttime; | ||
| 133 | $endTime=$aline->enddate." ".$aline->endtime; | ||
| 134 | |||
| 135 | $crmCalls=DB::select(DB::raw("select user_id,type,ts_Wait,ts_Call,ts_Talk,ts_Recstart,ts_Recend,ts_Dispo,ts_Close from crmcalls WHERE updated_at>='".$startTime."' and updated_at<'".$endTime."' and user_id='".$aline->user_id."'")); | ||
| 136 | |||
| 137 | $ts_Wait=0;$ts_Call=0;$ts_Talk=0;$ts_Dispo=0; | ||
| 138 | $progTs_Wait=0;$progTs_Call=0;$progTs_Talk=0;$progTs_Dispo=0; | ||
| 139 | $manTs_Wait=0;$manTs_Call=0;$manTs_Talk=0;$manTs_Dispo=0; | ||
| 140 | $inbTs_Wait=0;$inbTs_Call=0;$inbTs_Talk=0;$inbTs_Dispo=0; | ||
| 141 | $tt_prog=0;$tt_man=0;$tt_inb=0; | ||
| 142 | |||
| 143 | if($crmCalls!=null){ | ||
| 144 | foreach($crmCalls as $crmCall){ | ||
| 145 | $ts_Wait += round(($crmCall->ts_Call - $crmCall->ts_Wait)/1000,2); | ||
| 146 | $ts_Call += round(($crmCall->ts_Talk - $crmCall->ts_Call)/1000,2); | ||
| 147 | $ts_Talk += round(($crmCall->ts_Dispo - $crmCall->ts_Talk)/1000,2); | ||
| 148 | $ts_Dispo += round(($crmCall->ts_Close - $crmCall->ts_Dispo)/1000,2); | ||
| 149 | |||
| 150 | if($crmCall->type == 'Progressive') | ||
| 151 | { | ||
| 152 | $progTs_Wait += round(($crmCall->ts_Call - $crmCall->ts_Wait)/1000,2); | ||
| 153 | $progTs_Call += round(($crmCall->ts_Talk - $crmCall->ts_Call)/1000,2); | ||
| 154 | $progTs_Talk += round(($crmCall->ts_Dispo - $crmCall->ts_Talk)/1000,2); | ||
| 155 | $progTs_Dispo += round(($crmCall->ts_Close - $crmCall->ts_Dispo)/1000,2); | ||
| 156 | } | ||
| 157 | |||
| 158 | if($crmCall->type == 'Manual') | ||
| 159 | { | ||
| 160 | $manTs_Wait += round(($crmCall->ts_Call - $crmCall->ts_Wait)/1000,2); | ||
| 161 | $manTs_Call += round(($crmCall->ts_Talk - $crmCall->ts_Call)/1000,2); | ||
| 162 | $manTs_Talk += round(($crmCall->ts_Dispo - $crmCall->ts_Talk)/1000,2); | ||
| 163 | $manTs_Dispo += round(($crmCall->ts_Close - $crmCall->ts_Dispo)/1000,2); | ||
| 164 | } | ||
| 165 | |||
| 166 | if($crmCall->type == 'Inbound') | ||
| 167 | { | ||
| 168 | $inbTs_Wait += round(($crmCall->ts_Call - $crmCall->ts_Wait)/1000,2); | ||
| 169 | $inbTs_Call += round(($crmCall->ts_Talk - $crmCall->ts_Call)/1000,2); | ||
| 170 | $inbTs_Talk += round(($crmCall->ts_Dispo - $crmCall->ts_Talk)/1000,2); | ||
| 171 | $inbTs_Dispo += round(($crmCall->ts_Close - $crmCall->ts_Dispo)/1000,2); | ||
| 172 | } | ||
| 173 | } | ||
| 174 | } | ||
| 175 | |||
| 176 | $tt_prog = $progTs_Wait + $progTs_Call + $progTs_Talk + $progTs_Dispo; | ||
| 177 | $tt_man = $manTs_Wait + $manTs_Call + $manTs_Talk + $manTs_Dispo; | ||
| 178 | $tt_inb = $inbTs_Wait + $inbTs_Call + $inbTs_Talk + $inbTs_Dispo; | ||
| 179 | |||
| 180 | $total_idealtime=$rowdata["login"]-($rowdata['not-ready']+$tt_prog+$tt_man+$tt_inb); | ||
| 181 | |||
| 182 | echo "notready time-----idle----".$total_idealtime; | ||
| 183 | |||
| 184 | foreach($rowdata AS $key=>$value) { | ||
| 185 | if($key != 1) | ||
| 186 | $key_value .= "`$key` = '$value', "; | ||
| 187 | } | ||
| 188 | $prod_TOS = $ts_Wait + $ts_Call + $ts_Talk + $ts_Dispo; | ||
| 189 | |||
| 190 | $key_value .= "`tt_prog` = '$tt_prog', "; | ||
| 191 | $key_value .= "`tt_man` = '$tt_man', "; | ||
| 192 | $key_value .= "`tt_inb` = '$tt_inb', "; | ||
| 193 | |||
| 194 | $key_value .= "`ts_Wait` = '$ts_Wait', "; | ||
| 195 | $key_value .= "`ts_Call` = '$ts_Call', "; | ||
| 196 | $key_value .= "`ts_Talk` = '$ts_Talk', "; | ||
| 197 | $key_value .= "`ts_Dispo` = '$ts_Dispo', "; | ||
| 198 | $key_value .= "`progts_Wait` = '$progTs_Wait', "; | ||
| 199 | $key_value .= "`progts_Call` = '$progTs_Call', "; | ||
| 200 | $key_value .= "`progts_Talk` = '$progTs_Talk', "; | ||
| 201 | $key_value .= "`progts_Dispo` = '$progTs_Dispo', "; | ||
| 202 | $key_value .= "`mants_Wait` = '$manTs_Wait', "; | ||
| 203 | $key_value .= "`mants_Call` = '$manTs_Call', "; | ||
| 204 | $key_value .= "`mants_Talk` = '$manTs_Talk', "; | ||
| 205 | $key_value .= "`mants_Dispo` = '$manTs_Dispo', "; | ||
| 206 | $key_value .= "`incts_Wait` = '$inbTs_Wait', "; | ||
| 207 | $key_value .= "`incts_Call` = '$inbTs_Call', "; | ||
| 208 | $key_value .= "`incts_Talk` = '$inbTs_Talk', "; | ||
| 209 | $key_value .= "`incts_Dispo` = '$inbTs_Dispo', "; | ||
| 210 | $key_value .= "`prod_tos` = '$prod_TOS', "; | ||
| 211 | $key_value .= "`totalidealtime` = '$total_idealtime', "; | ||
| 212 | |||
| 213 | |||
| 214 | |||
| 215 | $key_value = substr($key_value, 0, -2); | ||
| 216 | |||
| 217 | //$userlogsTable = "userlogs_".date("d_m_Y",$logdate); | ||
| 218 | $userlogsTable = "userlogs_datavalid"; | ||
| 219 | DB::connection("conn")->insert(DB::raw("INSERT INTO ".$userlogsTable." SET $key_value")); | ||
| 220 | |||
| 221 | } | ||
| 222 | |||
| 223 | } | ||
| 224 | } | ||
| 225 | } | ||
| 226 | } |
| 1 | <?php namespace App\Console\Commands; | ||
| 2 | |||
| 3 | use Illuminate\Console\Command; | ||
| 4 | use DB; | ||
| 5 | use Config; | ||
| 6 | |||
| 7 | use App\Models\User; | ||
| 8 | use App\Models\Accesslog; | ||
| 9 | |||
| 10 | use App\Models\CRMCall; | ||
| 11 | use Schema; | ||
| 12 | use PDO; | ||
| 13 | |||
| 14 | use Illuminate\Database\Schema\Blueprint; | ||
| 15 | |||
| 16 | class dailyupload_calllog extends Command { | ||
| 17 | |||
| 18 | /** | ||
| 19 | * The console command name. | ||
| 20 | * | ||
| 21 | * @var string | ||
| 22 | */ | ||
| 23 | protected $signature = 'dailyupload_calllog'; | ||
| 24 | |||
| 25 | /** | ||
| 26 | * The console command description. | ||
| 27 | * | ||
| 28 | * @var string | ||
| 29 | */ | ||
| 30 | protected $description = 'dailyupload_calllog'; | ||
| 31 | |||
| 32 | /** | ||
| 33 | * Execute the console command. | ||
| 34 | * | ||
| 35 | * @return mixed | ||
| 36 | */ | ||
| 37 | public function handle() | ||
| 38 | { | ||
| 39 | $nowts=time(); | ||
| 40 | echo "\n".date('Y-m-d H:i:s')."\n"; | ||
| 41 | $logdate=strtotime('0 day'); | ||
| 42 | |||
| 43 | $tcol=0;$fieldsarr=array();$extrahdrarr=array(); | ||
| 44 | $server_ip=env('app_ip'); | ||
| 45 | $central_ip=env('central_ip'); | ||
| 46 | $calllog_report = "calllog_report_".date("d_m_Y",$logdate); | ||
| 47 | $created_at=date("Y-m-d H:i:s"); | ||
| 48 | |||
| 49 | $conn = array( | ||
| 50 | 'driver' => 'mysql', | ||
| 51 | 'host' => $central_ip, | ||
| 52 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | ||
| 53 | 'username' => env('DB_USERNAME', 'root'), | ||
| 54 | 'password' => env('DB_PASSWORD', ''), | ||
| 55 | 'charset' => 'utf8', | ||
| 56 | 'collation' => 'utf8_unicode_ci', | ||
| 57 | 'prefix' => '', | ||
| 58 | 'options' => array( | ||
| 59 | PDO::ATTR_TIMEOUT => 5, | ||
| 60 | ), | ||
| 61 | ); | ||
| 62 | Config::set("database.connections.conn", $conn); | ||
| 63 | if(DB::connection("conn")->getDatabaseName()) | ||
| 64 | { | ||
| 65 | |||
| 66 | $serverclist=DB::connection("conn")->select(DB::raw("select id from server_details where server_ip='$server_ip'")); | ||
| 67 | $server_id=$serverclist[0]->id; | ||
| 68 | if($server_id<10){ | ||
| 69 | $server_id="0".$server_id; | ||
| 70 | } | ||
| 71 | |||
| 72 | $clist=DB::connection("conn")->select(DB::raw("select count(*) as cnt,server from $calllog_report group by server")); | ||
| 73 | $caar=[]; | ||
| 74 | foreach($clist as $cline) | ||
| 75 | { | ||
| 76 | $caar[$cline->server]= $cline->cnt; | ||
| 77 | |||
| 78 | |||
| 79 | } | ||
| 80 | $mlist=DB::select(DB::raw("select count(*) as countrecord from crmcalls where created_at>'".date("Y-m-d",$logdate)."' and created_at<'".date("Y-m-d",$logdate+24*60*60)."'")); | ||
| 81 | |||
| 82 | $location_cont='0'; | ||
| 83 | $central_cont='0'; | ||
| 84 | |||
| 85 | $location_cont=$mlist[0]->countrecord; | ||
| 86 | if(array_key_exists($server_id,$caar)){ | ||
| 87 | $central_cont=$caar[$server_id]; | ||
| 88 | }else{ | ||
| 89 | $central_cont=0; | ||
| 90 | |||
| 91 | } | ||
| 92 | $dif=($central_cont)-($mlist[0]->countrecord); | ||
| 93 | |||
| 94 | if($dif==0){ | ||
| 95 | |||
| 96 | $result="Y"; | ||
| 97 | |||
| 98 | DB::connection("conn")->insert(DB::raw("insert into dailyupload_calllog_records set created_at='$created_at',server_id='$server_id',server_ip='$server_ip',central_count='$central_cont',location_count='$location_cont',difference='$dif',result='$result'")); | ||
| 99 | |||
| 100 | }else{ | ||
| 101 | |||
| 102 | $result="N"; | ||
| 103 | DB::connection("conn")->insert(DB::raw("insert into dailyupload_calllog_records set created_at='$created_at',server_id='$server_id',server_ip='$server_ip',central_count='$central_cont',location_count='$location_cont',difference='$dif',result='$result'")); | ||
| 104 | |||
| 105 | } | ||
| 106 | |||
| 107 | DB::connection("conn")->disconnect(); | ||
| 108 | |||
| 109 | } | ||
| 110 | |||
| 111 | } | ||
| 112 | |||
| 113 | |||
| 114 | } |
| ... | @@ -71,9 +71,9 @@ class bulkServerUpload extends Command { | ... | @@ -71,9 +71,9 @@ class bulkServerUpload extends Command { |
| 71 | $conn = array( | 71 | $conn = array( |
| 72 | 'driver' => 'mysql', | 72 | 'driver' => 'mysql', |
| 73 | 'host' => $central_ip, | 73 | 'host' => $central_ip, |
| 74 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 74 | 'database' => env('CENTRAL_DB'), |
| 75 | 'username' => env('DB_USERNAME', 'root'), | 75 | 'username' => env('CENTRAL_USERNAME'), |
| 76 | 'password' => env('DB_PASSWORD', 'yb9738z'), | 76 | 'password' => env('CENTRAL_PASSWORD'), |
| 77 | 'charset' => 'utf8', | 77 | 'charset' => 'utf8', |
| 78 | 'collation' => 'utf8_unicode_ci', | 78 | 'collation' => 'utf8_unicode_ci', |
| 79 | 'prefix' => '', | 79 | 'prefix' => '', |
| ... | @@ -88,8 +88,7 @@ class bulkServerUpload extends Command { | ... | @@ -88,8 +88,7 @@ class bulkServerUpload extends Command { |
| 88 | $serverclist=DB::connection("conn")->select(DB::raw("select location from server_details where server_ip='$server_ip'")); | 88 | $serverclist=DB::connection("conn")->select(DB::raw("select location from server_details where server_ip='$server_ip'")); |
| 89 | $location=$serverclist[0]->location; | 89 | $location=$serverclist[0]->location; |
| 90 | 90 | ||
| 91 | 91 | $excelarray = DB::connection("conn")->select(DB::raw("select * from bz_record_upload_uat where SERVER_IP='$server_ip' order by auto_id asc limit 0,50000")); | |
| 92 | $excelarray = DB::connection("conn")->select(DB::raw("select * from bz_record_upload_uat where SERVER_IP='$server_ip' order by auto_id asc limit 0,20000")); | ||
| 93 | 92 | ||
| 94 | $conn=''; | 93 | $conn=''; |
| 95 | 94 | ||
| ... | @@ -211,7 +210,7 @@ class bulkServerUpload extends Command { | ... | @@ -211,7 +210,7 @@ class bulkServerUpload extends Command { |
| 211 | } | 210 | } |
| 212 | 211 | ||
| 213 | } | 212 | } |
| 214 | if(!empty($successArr)){ | 213 | /*if(!empty($successArr)){ |
| 215 | foreach($successArr as $succes) | 214 | foreach($successArr as $succes) |
| 216 | { | 215 | { |
| 217 | $setSuccess=array(); | 216 | $setSuccess=array(); |
| ... | @@ -242,7 +241,7 @@ class bulkServerUpload extends Command { | ... | @@ -242,7 +241,7 @@ class bulkServerUpload extends Command { |
| 242 | 241 | ||
| 243 | DB::connection("conn")->insert(DB::raw("insert into bz_record_upload_uat_failure set $setFailure")); | 242 | DB::connection("conn")->insert(DB::raw("insert into bz_record_upload_uat_failure set $setFailure")); |
| 244 | } | 243 | } |
| 245 | } | 244 | }*/ |
| 246 | 245 | ||
| 247 | DB::connection("conn")->disconnect(); | 246 | DB::connection("conn")->disconnect(); |
| 248 | } | 247 | } | ... | ... |
| ... | @@ -71,9 +71,9 @@ class bulkServerUpload_1 extends Command { | ... | @@ -71,9 +71,9 @@ class bulkServerUpload_1 extends Command { |
| 71 | $conn = array( | 71 | $conn = array( |
| 72 | 'driver' => 'mysql', | 72 | 'driver' => 'mysql', |
| 73 | 'host' => $central_ip, | 73 | 'host' => $central_ip, |
| 74 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 74 | 'database' => env('CENTRAL_DB'), |
| 75 | 'username' => env('DB_USERNAME', 'root'), | 75 | 'username' => env('CENTRAL_USERNAME'), |
| 76 | 'password' => env('DB_PASSWORD', 'yb9738z'), | 76 | 'password' => env('CENTRAL_PASSWORD'), |
| 77 | 'charset' => 'utf8', | 77 | 'charset' => 'utf8', |
| 78 | 'collation' => 'utf8_unicode_ci', | 78 | 'collation' => 'utf8_unicode_ci', |
| 79 | 'prefix' => '', | 79 | 'prefix' => '', |
| ... | @@ -89,7 +89,7 @@ class bulkServerUpload_1 extends Command { | ... | @@ -89,7 +89,7 @@ class bulkServerUpload_1 extends Command { |
| 89 | $location=$serverclist[0]->location; | 89 | $location=$serverclist[0]->location; |
| 90 | 90 | ||
| 91 | 91 | ||
| 92 | $excelarray = DB::connection("conn")->select(DB::raw("select * from bz_record_upload_uat where SERVER_IP='$server_ip' order by auto_id asc limit 20001,40000")); | 92 | $excelarray = DB::connection("conn")->select(DB::raw("select * from bz_record_upload_uat where SERVER_IP='$server_ip' order by auto_id asc limit 50000,50000")); |
| 93 | 93 | ||
| 94 | $conn=''; | 94 | $conn=''; |
| 95 | 95 | ||
| ... | @@ -211,6 +211,7 @@ class bulkServerUpload_1 extends Command { | ... | @@ -211,6 +211,7 @@ class bulkServerUpload_1 extends Command { |
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | } | 213 | } |
| 214 | /* | ||
| 214 | if(!empty($successArr)){ | 215 | if(!empty($successArr)){ |
| 215 | foreach($successArr as $succes) | 216 | foreach($successArr as $succes) |
| 216 | { | 217 | { |
| ... | @@ -243,6 +244,7 @@ class bulkServerUpload_1 extends Command { | ... | @@ -243,6 +244,7 @@ class bulkServerUpload_1 extends Command { |
| 243 | DB::connection("conn")->insert(DB::raw("insert into bz_record_upload_uat_failure set $setFailure")); | 244 | DB::connection("conn")->insert(DB::raw("insert into bz_record_upload_uat_failure set $setFailure")); |
| 244 | } | 245 | } |
| 245 | } | 246 | } |
| 247 | */ | ||
| 246 | 248 | ||
| 247 | DB::connection("conn")->disconnect(); | 249 | DB::connection("conn")->disconnect(); |
| 248 | } | 250 | } | ... | ... |
| ... | @@ -71,9 +71,9 @@ class bulkServerUpload_2 extends Command { | ... | @@ -71,9 +71,9 @@ class bulkServerUpload_2 extends Command { |
| 71 | $conn = array( | 71 | $conn = array( |
| 72 | 'driver' => 'mysql', | 72 | 'driver' => 'mysql', |
| 73 | 'host' => $central_ip, | 73 | 'host' => $central_ip, |
| 74 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 74 | 'database' => env('CENTRAL_DB'), |
| 75 | 'username' => env('DB_USERNAME', 'root'), | 75 | 'username' => env('CENTRAL_USERNAME'), |
| 76 | 'password' => env('DB_PASSWORD', 'yb9738z'), | 76 | 'password' => env('CENTRAL_PASSWORD'), |
| 77 | 'charset' => 'utf8', | 77 | 'charset' => 'utf8', |
| 78 | 'collation' => 'utf8_unicode_ci', | 78 | 'collation' => 'utf8_unicode_ci', |
| 79 | 'prefix' => '', | 79 | 'prefix' => '', |
| ... | @@ -89,7 +89,7 @@ class bulkServerUpload_2 extends Command { | ... | @@ -89,7 +89,7 @@ class bulkServerUpload_2 extends Command { |
| 89 | $location=$serverclist[0]->location; | 89 | $location=$serverclist[0]->location; |
| 90 | 90 | ||
| 91 | 91 | ||
| 92 | $excelarray = DB::connection("conn")->select(DB::raw("select * from bz_record_upload_uat where SERVER_IP='$server_ip' order by auto_id asc limit 40001,60000")); | 92 | $excelarray = DB::connection("conn")->select(DB::raw("select * from bz_record_upload_uat where SERVER_IP='$server_ip' order by auto_id asc limit 100000,50000")); |
| 93 | 93 | ||
| 94 | $conn=''; | 94 | $conn=''; |
| 95 | 95 | ||
| ... | @@ -211,6 +211,7 @@ class bulkServerUpload_2 extends Command { | ... | @@ -211,6 +211,7 @@ class bulkServerUpload_2 extends Command { |
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | } | 213 | } |
| 214 | /* | ||
| 214 | if(!empty($successArr)){ | 215 | if(!empty($successArr)){ |
| 215 | foreach($successArr as $succes) | 216 | foreach($successArr as $succes) |
| 216 | { | 217 | { |
| ... | @@ -243,7 +244,7 @@ class bulkServerUpload_2 extends Command { | ... | @@ -243,7 +244,7 @@ class bulkServerUpload_2 extends Command { |
| 243 | DB::connection("conn")->insert(DB::raw("insert into bz_record_upload_uat_failure set $setFailure")); | 244 | DB::connection("conn")->insert(DB::raw("insert into bz_record_upload_uat_failure set $setFailure")); |
| 244 | } | 245 | } |
| 245 | } | 246 | } |
| 246 | 247 | */ | |
| 247 | DB::connection("conn")->disconnect(); | 248 | DB::connection("conn")->disconnect(); |
| 248 | } | 249 | } |
| 249 | } | 250 | } | ... | ... |
| ... | @@ -71,9 +71,9 @@ class bulkServerUpload_3 extends Command { | ... | @@ -71,9 +71,9 @@ class bulkServerUpload_3 extends Command { |
| 71 | $conn = array( | 71 | $conn = array( |
| 72 | 'driver' => 'mysql', | 72 | 'driver' => 'mysql', |
| 73 | 'host' => $central_ip, | 73 | 'host' => $central_ip, |
| 74 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 74 | 'database' => env('CENTRAL_DB'), |
| 75 | 'username' => env('DB_USERNAME', 'root'), | 75 | 'username' => env('CENTRAL_USERNAME'), |
| 76 | 'password' => env('DB_PASSWORD', 'yb9738z'), | 76 | 'password' => env('CENTRAL_PASSWORD'), |
| 77 | 'charset' => 'utf8', | 77 | 'charset' => 'utf8', |
| 78 | 'collation' => 'utf8_unicode_ci', | 78 | 'collation' => 'utf8_unicode_ci', |
| 79 | 'prefix' => '', | 79 | 'prefix' => '', |
| ... | @@ -89,7 +89,7 @@ class bulkServerUpload_3 extends Command { | ... | @@ -89,7 +89,7 @@ class bulkServerUpload_3 extends Command { |
| 89 | $location=$serverclist[0]->location; | 89 | $location=$serverclist[0]->location; |
| 90 | 90 | ||
| 91 | 91 | ||
| 92 | $excelarray = DB::connection("conn")->select(DB::raw("select * from bz_record_upload_uat where SERVER_IP='$server_ip' order by auto_id asc limit 60001,80000")); | 92 | $excelarray = DB::connection("conn")->select(DB::raw("select * from bz_record_upload_uat where SERVER_IP='$server_ip' order by auto_id asc limit 150000,50000")); |
| 93 | 93 | ||
| 94 | $conn=''; | 94 | $conn=''; |
| 95 | 95 | ||
| ... | @@ -211,6 +211,7 @@ class bulkServerUpload_3 extends Command { | ... | @@ -211,6 +211,7 @@ class bulkServerUpload_3 extends Command { |
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | } | 213 | } |
| 214 | /* | ||
| 214 | if(!empty($successArr)){ | 215 | if(!empty($successArr)){ |
| 215 | foreach($successArr as $succes) | 216 | foreach($successArr as $succes) |
| 216 | { | 217 | { |
| ... | @@ -243,7 +244,7 @@ class bulkServerUpload_3 extends Command { | ... | @@ -243,7 +244,7 @@ class bulkServerUpload_3 extends Command { |
| 243 | DB::connection("conn")->insert(DB::raw("insert into bz_record_upload_uat_failure set $setFailure")); | 244 | DB::connection("conn")->insert(DB::raw("insert into bz_record_upload_uat_failure set $setFailure")); |
| 244 | } | 245 | } |
| 245 | } | 246 | } |
| 246 | 247 | */ | |
| 247 | DB::connection("conn")->disconnect(); | 248 | DB::connection("conn")->disconnect(); |
| 248 | } | 249 | } |
| 249 | } | 250 | } | ... | ... |
| ... | @@ -71,9 +71,9 @@ class bulkServerUpload_4 extends Command { | ... | @@ -71,9 +71,9 @@ class bulkServerUpload_4 extends Command { |
| 71 | $conn = array( | 71 | $conn = array( |
| 72 | 'driver' => 'mysql', | 72 | 'driver' => 'mysql', |
| 73 | 'host' => $central_ip, | 73 | 'host' => $central_ip, |
| 74 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 74 | 'database' => env('CENTRAL_DB'), |
| 75 | 'username' => env('DB_USERNAME', 'root'), | 75 | 'username' => env('CENTRAL_USERNAME'), |
| 76 | 'password' => env('DB_PASSWORD', 'yb9738z'), | 76 | 'password' => env('CENTRAL_PASSWORD'), |
| 77 | 'charset' => 'utf8', | 77 | 'charset' => 'utf8', |
| 78 | 'collation' => 'utf8_unicode_ci', | 78 | 'collation' => 'utf8_unicode_ci', |
| 79 | 'prefix' => '', | 79 | 'prefix' => '', | ... | ... |
| ... | @@ -71,9 +71,9 @@ class bulkServerUpload_5 extends Command { | ... | @@ -71,9 +71,9 @@ class bulkServerUpload_5 extends Command { |
| 71 | $conn = array( | 71 | $conn = array( |
| 72 | 'driver' => 'mysql', | 72 | 'driver' => 'mysql', |
| 73 | 'host' => $central_ip, | 73 | 'host' => $central_ip, |
| 74 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 74 | 'database' => env('CENTRAL_DB'), |
| 75 | 'username' => env('DB_USERNAME', 'root'), | 75 | 'username' => env('CENTRAL_USERNAME'), |
| 76 | 'password' => env('DB_PASSWORD', 'yb9738z'), | 76 | 'password' => env('CENTRAL_PASSWORD'), |
| 77 | 'charset' => 'utf8', | 77 | 'charset' => 'utf8', |
| 78 | 'collation' => 'utf8_unicode_ci', | 78 | 'collation' => 'utf8_unicode_ci', |
| 79 | 'prefix' => '', | 79 | 'prefix' => '', | ... | ... |
| ... | @@ -71,9 +71,9 @@ class bulkServerUpload_6 extends Command { | ... | @@ -71,9 +71,9 @@ class bulkServerUpload_6 extends Command { |
| 71 | $conn = array( | 71 | $conn = array( |
| 72 | 'driver' => 'mysql', | 72 | 'driver' => 'mysql', |
| 73 | 'host' => $central_ip, | 73 | 'host' => $central_ip, |
| 74 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 74 | 'database' => env('CENTRAL_DB'), |
| 75 | 'username' => env('DB_USERNAME', 'root'), | 75 | 'username' => env('CENTRAL_USERNAME'), |
| 76 | 'password' => env('DB_PASSWORD', 'yb9738z'), | 76 | 'password' => env('CENTRAL_PASSWORD'), |
| 77 | 'charset' => 'utf8', | 77 | 'charset' => 'utf8', |
| 78 | 'collation' => 'utf8_unicode_ci', | 78 | 'collation' => 'utf8_unicode_ci', |
| 79 | 'prefix' => '', | 79 | 'prefix' => '', | ... | ... |
| ... | @@ -71,9 +71,9 @@ class bulkServerUpload_daily extends Command { | ... | @@ -71,9 +71,9 @@ class bulkServerUpload_daily extends Command { |
| 71 | $conn = array( | 71 | $conn = array( |
| 72 | 'driver' => 'mysql', | 72 | 'driver' => 'mysql', |
| 73 | 'host' => $central_ip, | 73 | 'host' => $central_ip, |
| 74 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 74 | 'database' => env('CENTRAL_DB'), |
| 75 | 'username' => env('DB_USERNAME', 'root'), | 75 | 'username' => env('CENTRAL_USERNAME'), |
| 76 | 'password' => env('DB_PASSWORD', 'yb9738z'), | 76 | 'password' => env('CENTRAL_PASSWORD'), |
| 77 | 'charset' => 'utf8', | 77 | 'charset' => 'utf8', |
| 78 | 'collation' => 'utf8_unicode_ci', | 78 | 'collation' => 'utf8_unicode_ci', |
| 79 | 'prefix' => '', | 79 | 'prefix' => '', |
| ... | @@ -91,7 +91,7 @@ echo $central_ip; | ... | @@ -91,7 +91,7 @@ echo $central_ip; |
| 91 | echo $location; | 91 | echo $location; |
| 92 | 92 | ||
| 93 | 93 | ||
| 94 | $excelarray = DB::connection("conn")->select(DB::raw("select * from bz_record_upload_uat_daily where SERVER_IP='$server_ip'")); | 94 | $excelarray = DB::connection("conn")->select(DB::raw("select * from bz_record_upload_uat_daily where SERVER_IP='$server_ip' order by auto_id asc limit 0,200")); |
| 95 | 95 | ||
| 96 | $conn=''; | 96 | $conn=''; |
| 97 | 97 | ... | ... |
application/app/Console/Commands/bulkServerUpload_data3.php
100644 → 100755
| ... | @@ -71,9 +71,9 @@ class bulkServerUpload_data3 extends Command { | ... | @@ -71,9 +71,9 @@ class bulkServerUpload_data3 extends Command { |
| 71 | $conn = array( | 71 | $conn = array( |
| 72 | 'driver' => 'mysql', | 72 | 'driver' => 'mysql', |
| 73 | 'host' => $central_ip, | 73 | 'host' => $central_ip, |
| 74 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 74 | 'database' => env('CENTRAL_DB'), |
| 75 | 'username' => env('DB_USERNAME', 'root'), | 75 | 'username' => env('CENTRAL_USERNAME'), |
| 76 | 'password' => env('DB_PASSWORD', 'yb9738z'), | 76 | 'password' => env('CENTRAL_PASSWORD'), |
| 77 | 'charset' => 'utf8', | 77 | 'charset' => 'utf8', |
| 78 | 'collation' => 'utf8_unicode_ci', | 78 | 'collation' => 'utf8_unicode_ci', |
| 79 | 'prefix' => '', | 79 | 'prefix' => '', | ... | ... |
| ... | @@ -71,9 +71,9 @@ class bulkserverupload_data extends Command { | ... | @@ -71,9 +71,9 @@ class bulkserverupload_data extends Command { |
| 71 | $conn = array( | 71 | $conn = array( |
| 72 | 'driver' => 'mysql', | 72 | 'driver' => 'mysql', |
| 73 | 'host' => $central_ip, | 73 | 'host' => $central_ip, |
| 74 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 74 | 'database' => env('CENTRAL_DB'), |
| 75 | 'username' => env('DB_USERNAME', 'root'), | 75 | 'username' => env('CENTRAL_USERNAME'), |
| 76 | 'password' => env('DB_PASSWORD', 'yb9738z'), | 76 | 'password' => env('CENTRAL_PASSWORD'), |
| 77 | 'charset' => 'utf8', | 77 | 'charset' => 'utf8', |
| 78 | 'collation' => 'utf8_unicode_ci', | 78 | 'collation' => 'utf8_unicode_ci', |
| 79 | 'prefix' => '', | 79 | 'prefix' => '', | ... | ... |
| ... | @@ -51,9 +51,9 @@ class calllog extends Command { | ... | @@ -51,9 +51,9 @@ class calllog extends Command { |
| 51 | $conn = array( | 51 | $conn = array( |
| 52 | 'driver' => 'mysql', | 52 | 'driver' => 'mysql', |
| 53 | 'host' => $central_ip, | 53 | 'host' => $central_ip, |
| 54 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 54 | 'database' => env('CENTRAL_DB'), |
| 55 | 'username' => env('DB_USERNAME', 'root'), | 55 | 'username' => env('CENTRAL_USERNAME'), |
| 56 | 'password' => env('DB_PASSWORD', ''), | 56 | 'password' => env('CENTRAL_PASSWORD'), |
| 57 | 'charset' => 'utf8', | 57 | 'charset' => 'utf8', |
| 58 | 'collation' => 'utf8_unicode_ci', | 58 | 'collation' => 'utf8_unicode_ci', |
| 59 | 'prefix' => '', | 59 | 'prefix' => '', | ... | ... |
| ... | @@ -47,9 +47,9 @@ class complaint_data extends Command { | ... | @@ -47,9 +47,9 @@ class complaint_data extends Command { |
| 47 | $conn = array( | 47 | $conn = array( |
| 48 | 'driver' => 'mysql', | 48 | 'driver' => 'mysql', |
| 49 | 'host' => $central_ip, | 49 | 'host' => $central_ip, |
| 50 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 50 | 'database' => env('CENTRAL_DB'), |
| 51 | 'username' => env('DB_USERNAME', 'root'), | 51 | 'username' => env('CENTRAL_USERNAME'), |
| 52 | 'password' => env('DB_PASSWORD', ''), | 52 | 'password' => env('CENTRAL_PASSWORD'), |
| 53 | 'charset' => 'utf8', | 53 | 'charset' => 'utf8', |
| 54 | 'collation' => 'utf8_unicode_ci', | 54 | 'collation' => 'utf8_unicode_ci', |
| 55 | 'prefix' => '', | 55 | 'prefix' => '', | ... | ... |
| ... | @@ -50,9 +50,9 @@ public function handle() | ... | @@ -50,9 +50,9 @@ public function handle() |
| 50 | $conn = array( | 50 | $conn = array( |
| 51 | 'driver' => 'mysql', | 51 | 'driver' => 'mysql', |
| 52 | 'host' => $central_ip, | 52 | 'host' => $central_ip, |
| 53 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 53 | 'database' => env('CENTRAL_DB'), |
| 54 | 'username' => env('DB_USERNAME', 'root'), | 54 | 'username' => env('CENTRAL_USERNAME'), |
| 55 | 'password' => env('DB_PASSWORD', ''), | 55 | 'password' => env('CENTRAL_PASSWORD'), |
| 56 | 'charset' => 'utf8', | 56 | 'charset' => 'utf8', |
| 57 | 'collation' => 'utf8_unicode_ci', | 57 | 'collation' => 'utf8_unicode_ci', |
| 58 | 'prefix' => '', | 58 | 'prefix' => '', | ... | ... |
| ... | @@ -50,9 +50,9 @@ public function handle() | ... | @@ -50,9 +50,9 @@ public function handle() |
| 50 | $conn = array( | 50 | $conn = array( |
| 51 | 'driver' => 'mysql', | 51 | 'driver' => 'mysql', |
| 52 | 'host' => $central_ip, | 52 | 'host' => $central_ip, |
| 53 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 53 | 'database' => env('CENTRAL_DB'), |
| 54 | 'username' => env('DB_USERNAME', 'root'), | 54 | 'username' => env('CENTRAL_USERNAME'), |
| 55 | 'password' => env('DB_PASSWORD', ''), | 55 | 'password' => env('CENTRAL_PASSWORD'), |
| 56 | 'charset' => 'utf8', | 56 | 'charset' => 'utf8', |
| 57 | 'collation' => 'utf8_unicode_ci', | 57 | 'collation' => 'utf8_unicode_ci', |
| 58 | 'prefix' => '', | 58 | 'prefix' => '', | ... | ... |
| ... | @@ -50,9 +50,9 @@ class dailyupload_calllog extends Command { | ... | @@ -50,9 +50,9 @@ class dailyupload_calllog extends Command { |
| 50 | $conn = array( | 50 | $conn = array( |
| 51 | 'driver' => 'mysql', | 51 | 'driver' => 'mysql', |
| 52 | 'host' => $central_ip, | 52 | 'host' => $central_ip, |
| 53 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 53 | 'database' => env('CENTRAL_DB'), |
| 54 | 'username' => env('DB_USERNAME', 'root'), | 54 | 'username' => env('CENTRAL_USERNAME'), |
| 55 | 'password' => env('DB_PASSWORD', ''), | 55 | 'password' => env('CENTRAL_PASSWORD'), |
| 56 | 'charset' => 'utf8', | 56 | 'charset' => 'utf8', |
| 57 | 'collation' => 'utf8_unicode_ci', | 57 | 'collation' => 'utf8_unicode_ci', |
| 58 | 'prefix' => '', | 58 | 'prefix' => '', | ... | ... |
| ... | @@ -51,9 +51,9 @@ class dailyupload_questionaire extends Command { | ... | @@ -51,9 +51,9 @@ class dailyupload_questionaire extends Command { |
| 51 | $conn = array( | 51 | $conn = array( |
| 52 | 'driver' => 'mysql', | 52 | 'driver' => 'mysql', |
| 53 | 'host' => $central_ip, | 53 | 'host' => $central_ip, |
| 54 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 54 | 'database' => env('CENTRAL_DB'), |
| 55 | 'username' => env('DB_USERNAME', 'root'), | 55 | 'username' => env('CENTRAL_USERNAME'), |
| 56 | 'password' => env('DB_PASSWORD', ''), | 56 | 'password' => env('CENTRAL_PASSWORD'), |
| 57 | 'charset' => 'utf8', | 57 | 'charset' => 'utf8', |
| 58 | 'collation' => 'utf8_unicode_ci', | 58 | 'collation' => 'utf8_unicode_ci', |
| 59 | 'prefix' => '', | 59 | 'prefix' => '', | ... | ... |
| ... | @@ -44,15 +44,15 @@ class full_remark_details extends Command { | ... | @@ -44,15 +44,15 @@ class full_remark_details extends Command { |
| 44 | 44 | ||
| 45 | $tcol=0;$fieldsarr=array();$extrahdrarr=array(); | 45 | $tcol=0;$fieldsarr=array();$extrahdrarr=array(); |
| 46 | $server_ip=env('app_ip'); | 46 | $server_ip=env('app_ip'); |
| 47 | $full_remark = "full_remark_details"; | ||
| 48 | $central_ip=env('central_ip'); | 47 | $central_ip=env('central_ip'); |
| 48 | $full_remark = "full_remark_details"; | ||
| 49 | 49 | ||
| 50 | $conn = array( | 50 | $conn = array( |
| 51 | 'driver' => 'mysql', | 51 | 'driver' => 'mysql', |
| 52 | 'host' => $central_ip, | 52 | 'host' => $central_ip, |
| 53 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 53 | 'database' => env('CENTRAL_DB'), |
| 54 | 'username' => env('DB_USERNAME', 'root'), | 54 | 'username' => env('CENTRAL_USERNAME'), |
| 55 | 'password' => env('DB_PASSWORD', ''), | 55 | 'password' => env('CENTRAL_PASSWORD'), |
| 56 | 'charset' => 'utf8', | 56 | 'charset' => 'utf8', |
| 57 | 'collation' => 'utf8_unicode_ci', | 57 | 'collation' => 'utf8_unicode_ci', |
| 58 | 'prefix' => '', | 58 | 'prefix' => '', |
| ... | @@ -76,8 +76,8 @@ class full_remark_details extends Command { | ... | @@ -76,8 +76,8 @@ class full_remark_details extends Command { |
| 76 | $maxids=$maxid[0]->maxid; | 76 | $maxids=$maxid[0]->maxid; |
| 77 | 77 | ||
| 78 | //$qlist=DB::select(DB::raw("SELECT * from full_remark")); | 78 | //$qlist=DB::select(DB::raw("SELECT * from full_remark")); |
| 79 | $qlist=DB::select(DB::raw("SELECT * from full_remark where id>'$maxids' and created_at>'".date("Y-m-d")."' and created_at<'".date("Y-m-d H:i:s",$logdate-(60*60))."'")); | 79 | $qlist=DB::select(DB::raw("SELECT * from full_remark where id>'$maxids' and fullremark!=''")); |
| 80 | 80 | echo count($qlist); | |
| 81 | $userarr=array(); | 81 | $userarr=array(); |
| 82 | foreach($qlist as $qline) | 82 | foreach($qlist as $qline) |
| 83 | { | 83 | { |
| ... | @@ -94,6 +94,7 @@ class full_remark_details extends Command { | ... | @@ -94,6 +94,7 @@ class full_remark_details extends Command { |
| 94 | DB::connection("conn")->insert(DB::raw("insert into ".$full_remark." set $setstr")); | 94 | DB::connection("conn")->insert(DB::raw("insert into ".$full_remark." set $setstr")); |
| 95 | 95 | ||
| 96 | } | 96 | } |
| 97 | echo "\n".date('Y-m-d H:i:s')."\n"; | ||
| 97 | DB::connection("conn")->disconnect(); | 98 | DB::connection("conn")->disconnect(); |
| 98 | 99 | ||
| 99 | } | 100 | } | ... | ... |
| ... | @@ -50,9 +50,9 @@ public function handle() | ... | @@ -50,9 +50,9 @@ public function handle() |
| 50 | $conn = array( | 50 | $conn = array( |
| 51 | 'driver' => 'mysql', | 51 | 'driver' => 'mysql', |
| 52 | 'host' => $central_ip, | 52 | 'host' => $central_ip, |
| 53 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 53 | 'database' => env('CENTRAL_DB'), |
| 54 | 'username' => env('DB_USERNAME', 'root'), | 54 | 'username' => env('CENTRAL_USERNAME'), |
| 55 | 'password' => env('DB_PASSWORD', ''), | 55 | 'password' => env('CENTRAL_PASSWORD'), |
| 56 | 'charset' => 'utf8', | 56 | 'charset' => 'utf8', |
| 57 | 'collation' => 'utf8_unicode_ci', | 57 | 'collation' => 'utf8_unicode_ci', |
| 58 | 'prefix' => '', | 58 | 'prefix' => '', | ... | ... |
| ... | @@ -50,9 +50,9 @@ public function handle() | ... | @@ -50,9 +50,9 @@ public function handle() |
| 50 | $conn = array( | 50 | $conn = array( |
| 51 | 'driver' => 'mysql', | 51 | 'driver' => 'mysql', |
| 52 | 'host' => $central_ip, | 52 | 'host' => $central_ip, |
| 53 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 53 | 'database' => env('CENTRAL_DB'), |
| 54 | 'username' => env('DB_USERNAME', 'root'), | 54 | 'username' => env('CENTRAL_USERNAME'), |
| 55 | 'password' => env('DB_PASSWORD', ''), | 55 | 'password' => env('CENTRAL_PASSWORD'), |
| 56 | 'charset' => 'utf8', | 56 | 'charset' => 'utf8', |
| 57 | 'collation' => 'utf8_unicode_ci', | 57 | 'collation' => 'utf8_unicode_ci', |
| 58 | 'prefix' => '', | 58 | 'prefix' => '', | ... | ... |
| ... | @@ -50,9 +50,9 @@ public function handle() | ... | @@ -50,9 +50,9 @@ public function handle() |
| 50 | $conn = array( | 50 | $conn = array( |
| 51 | 'driver' => 'mysql', | 51 | 'driver' => 'mysql', |
| 52 | 'host' => $central_ip, | 52 | 'host' => $central_ip, |
| 53 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 53 | 'database' => env('CENTRAL_DB'), |
| 54 | 'username' => env('DB_USERNAME', 'root'), | 54 | 'username' => env('CENTRAL_USERNAME'), |
| 55 | 'password' => env('DB_PASSWORD', ''), | 55 | 'password' => env('CENTRAL_PASSWORD'), |
| 56 | 'charset' => 'utf8', | 56 | 'charset' => 'utf8', |
| 57 | 'collation' => 'utf8_unicode_ci', | 57 | 'collation' => 'utf8_unicode_ci', |
| 58 | 'prefix' => '', | 58 | 'prefix' => '', | ... | ... |
| ... | @@ -47,9 +47,9 @@ class relationship_tag extends Command { | ... | @@ -47,9 +47,9 @@ class relationship_tag extends Command { |
| 47 | $conn = array( | 47 | $conn = array( |
| 48 | 'driver' => 'mysql', | 48 | 'driver' => 'mysql', |
| 49 | 'host' => $central_ip, | 49 | 'host' => $central_ip, |
| 50 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 50 | 'database' => env('CENTRAL_DB'), |
| 51 | 'username' => env('DB_USERNAME', 'root'), | 51 | 'username' => env('CENTRAL_USERNAME'), |
| 52 | 'password' => env('DB_PASSWORD', ''), | 52 | 'password' => env('CENTRAL_PASSWORD'), |
| 53 | 'charset' => 'utf8', | 53 | 'charset' => 'utf8', |
| 54 | 'collation' => 'utf8_unicode_ci', | 54 | 'collation' => 'utf8_unicode_ci', |
| 55 | 'prefix' => '', | 55 | 'prefix' => '', | ... | ... |
| ... | @@ -47,9 +47,9 @@ public function handle() | ... | @@ -47,9 +47,9 @@ public function handle() |
| 47 | $conn = array( | 47 | $conn = array( |
| 48 | 'driver' => 'mysql', | 48 | 'driver' => 'mysql', |
| 49 | 'host' => $central_ip, | 49 | 'host' => $central_ip, |
| 50 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 50 | 'database' => env('CENTRAL_DB'), |
| 51 | 'username' => env('DB_USERNAME', 'root'), | 51 | 'username' => env('CENTRAL_USERNAME'), |
| 52 | 'password' => env('DB_PASSWORD', ''), | 52 | 'password' => env('CENTRAL_PASSWORD'), |
| 53 | 'charset' => 'utf8', | 53 | 'charset' => 'utf8', |
| 54 | 'collation' => 'utf8_unicode_ci', | 54 | 'collation' => 'utf8_unicode_ci', |
| 55 | 'prefix' => '', | 55 | 'prefix' => '', | ... | ... |
| ... | @@ -54,9 +54,9 @@ public function handle() | ... | @@ -54,9 +54,9 @@ public function handle() |
| 54 | $conn = array( | 54 | $conn = array( |
| 55 | 'driver' => 'mysql', | 55 | 'driver' => 'mysql', |
| 56 | 'host' => $central_ip, | 56 | 'host' => $central_ip, |
| 57 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 57 | 'database' => env('CENTRAL_DB'), |
| 58 | 'username' => env('DB_USERNAME', 'root'), | 58 | 'username' => env('CENTRAL_USERNAME'), |
| 59 | 'password' => env('DB_PASSWORD', ''), | 59 | 'password' => env('CENTRAL_PASSWORD'), |
| 60 | 'charset' => 'utf8', | 60 | 'charset' => 'utf8', |
| 61 | 'collation' => 'utf8_unicode_ci', | 61 | 'collation' => 'utf8_unicode_ci', |
| 62 | 'prefix' => '', | 62 | 'prefix' => '', | ... | ... |
| ... | @@ -60,9 +60,9 @@ use Illuminate\Database\Schema\Blueprint; | ... | @@ -60,9 +60,9 @@ use Illuminate\Database\Schema\Blueprint; |
| 60 | $conn = array( | 60 | $conn = array( |
| 61 | 'driver' => 'mysql', | 61 | 'driver' => 'mysql', |
| 62 | 'host' => $central_ip, | 62 | 'host' => $central_ip, |
| 63 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 63 | 'database' => env('CENTRAL_DB'), |
| 64 | 'username' => env('DB_USERNAME', 'root'), | 64 | 'username' => env('CENTRAL_USERNAME'), |
| 65 | 'password' => env('DB_PASSWORD', ''), | 65 | 'password' => env('CENTRAL_PASSWORD'), |
| 66 | 'charset' => 'utf8', | 66 | 'charset' => 'utf8', |
| 67 | 'collation' => 'utf8_unicode_ci', | 67 | 'collation' => 'utf8_unicode_ci', |
| 68 | 'prefix' => '', | 68 | 'prefix' => '', | ... | ... |
| ... | @@ -51,9 +51,9 @@ class recording_reconcilation_metadata extends Command | ... | @@ -51,9 +51,9 @@ class recording_reconcilation_metadata extends Command |
| 51 | $conn = array( | 51 | $conn = array( |
| 52 | 'driver' => 'mysql', | 52 | 'driver' => 'mysql', |
| 53 | 'host' => $central_ip, | 53 | 'host' => $central_ip, |
| 54 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 54 | 'database' => env('CENTRAL_DB'), |
| 55 | 'username' => env('DB_USERNAME', 'root'), | 55 | 'username' => env('CENTRAL_USERNAME'), |
| 56 | 'password' => env('DB_PASSWORD', ''), | 56 | 'password' => env('CENTRAL_PASSWORD'), |
| 57 | 'charset' => 'utf8', | 57 | 'charset' => 'utf8', |
| 58 | 'collation' => 'utf8_unicode_ci', | 58 | 'collation' => 'utf8_unicode_ci', |
| 59 | 'prefix' => '', | 59 | 'prefix' => '', | ... | ... |
| ... | @@ -46,9 +46,9 @@ class records_details extends Command { | ... | @@ -46,9 +46,9 @@ class records_details extends Command { |
| 46 | $conn = array( | 46 | $conn = array( |
| 47 | 'driver' => 'mysql', | 47 | 'driver' => 'mysql', |
| 48 | 'host' => $central_ip, | 48 | 'host' => $central_ip, |
| 49 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 49 | 'database' => env('CENTRAL_DB'), |
| 50 | 'username' => env('DB_USERNAME', 'root'), | 50 | 'username' => env('CENTRAL_USERNAME'), |
| 51 | 'password' => env('DB_PASSWORD', ''), | 51 | 'password' => env('CENTRAL_PASSWORD'), |
| 52 | 'charset' => 'utf8', | 52 | 'charset' => 'utf8', |
| 53 | 'collation' => 'utf8_unicode_ci', | 53 | 'collation' => 'utf8_unicode_ci', |
| 54 | 'prefix' => '', | 54 | 'prefix' => '', |
| ... | @@ -73,7 +73,7 @@ echo ",".$server_ip; | ... | @@ -73,7 +73,7 @@ echo ",".$server_ip; |
| 73 | 73 | ||
| 74 | $maxids=$maxid[0]->maxid; | 74 | $maxids=$maxid[0]->maxid; |
| 75 | 75 | ||
| 76 | $qlist=DB::select(DB::raw("SELECT id,clientcode,client,status,clientinternalid,mobile,priority,modified,question,firstname FROM `records` where id>'$maxids'")); | 76 | $qlist=DB::select(DB::raw("SELECT id,created,clientcode,client,status,clientinternalid,mobile,priority,modified,question,firstname FROM `records` where id>'$maxids' and client != 'Inactive'")); |
| 77 | 77 | ||
| 78 | $countnumber=count($qlist); | 78 | $countnumber=count($qlist); |
| 79 | $finalnumber=$countnumber/50; | 79 | $finalnumber=$countnumber/50; |
| ... | @@ -86,6 +86,7 @@ echo ",".$server_ip; | ... | @@ -86,6 +86,7 @@ echo ",".$server_ip; |
| 86 | foreach($qlist as $qline) | 86 | foreach($qlist as $qline) |
| 87 | { | 87 | { |
| 88 | $record_id=$qline->id; | 88 | $record_id=$qline->id; |
| 89 | $created=$qline->created; | ||
| 89 | $clientcode=$qline->clientcode; | 90 | $clientcode=$qline->clientcode; |
| 90 | $client=$qline->client; | 91 | $client=$qline->client; |
| 91 | $status=$qline->status; | 92 | $status=$qline->status; |
| ... | @@ -96,19 +97,19 @@ echo ",".$server_ip; | ... | @@ -96,19 +97,19 @@ echo ",".$server_ip; |
| 96 | $question=$qline->question; | 97 | $question=$qline->question; |
| 97 | $firstname=$qline->firstname; | 98 | $firstname=$qline->firstname; |
| 98 | 99 | ||
| 99 | $shortinsert.="('$client', '$server_ip', '$record_id', '$clientcode', '$status', '$clientinternalid', '$location', '$mobile', '$question', '$firstname', '$priority', '$modified'),"; | 100 | $shortinsert.="('$client', '$server_ip', '$record_id', '$clientcode', '$status', '$clientinternalid', '$location', '$mobile', '$question', '$firstname', '$priority', '$modified', '$created'),"; |
| 100 | 101 | ||
| 101 | 102 | ||
| 102 | if($kkk<=$finalnumber){ | 103 | if($kkk<=$finalnumber){ |
| 103 | if($iii%50==0){ | 104 | if($iii%50==0){ |
| 104 | 105 | ||
| 105 | $shortinsert=substr($shortinsert,0,-1); | 106 | $shortinsert=substr($shortinsert,0,-1); |
| 106 | DB::connection("conn")->insert(DB::raw("INSERT INTO `records_details` (`client`, `server_ip`, `record_id`, `cust_id`, `records_status`, `group_id`, `location`, `mobile`, `question`,`firstname`, `priority`, `modified`) VALUES $shortinsert")); | 107 | DB::connection("conn")->insert(DB::raw("INSERT INTO `records_details` (`client`, `server_ip`, `record_id`, `cust_id`, `records_status`, `group_id`, `location`, `mobile`, `question`,`firstname`, `priority`, `modified`, `created`) VALUES $shortinsert")); |
| 107 | 108 | ||
| 108 | $kkk++; | 109 | $kkk++; |
| 109 | } | 110 | } |
| 110 | }else{ | 111 | }else{ |
| 111 | DB::connection("conn")->insert(DB::raw("insert into records_details set client='$client', server_ip='$server_ip', record_id='$record_id', cust_id='$clientcode', records_status='$status', group_id='$clientinternalid', location='$location',mobile='$mobile',question='$question',firstname='$firstname',priority='$priority',modified='$modified'")); | 112 | DB::connection("conn")->insert(DB::raw("insert into records_details set client='$client', server_ip='$server_ip', record_id='$record_id', cust_id='$clientcode', records_status='$status', group_id='$clientinternalid', location='$location',mobile='$mobile',question='$question',firstname='$firstname',priority='$priority',modified='$modified',created='$created'")); |
| 112 | } | 113 | } |
| 113 | if($iii%50==0){ | 114 | if($iii%50==0){ |
| 114 | $shortinsert=""; | 115 | $shortinsert=""; | ... | ... |
| ... | @@ -47,9 +47,9 @@ class relationship_tag extends Command { | ... | @@ -47,9 +47,9 @@ class relationship_tag extends Command { |
| 47 | $conn = array( | 47 | $conn = array( |
| 48 | 'driver' => 'mysql', | 48 | 'driver' => 'mysql', |
| 49 | 'host' => $central_ip, | 49 | 'host' => $central_ip, |
| 50 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 50 | 'database' => env('CENTRAL_DB'), |
| 51 | 'username' => env('DB_USERNAME', 'root'), | 51 | 'username' => env('CENTRAL_USERNAME'), |
| 52 | 'password' => env('DB_PASSWORD', ''), | 52 | 'password' => env('CENTRAL_PASSWORD'), |
| 53 | 'charset' => 'utf8', | 53 | 'charset' => 'utf8', |
| 54 | 'collation' => 'utf8_unicode_ci', | 54 | 'collation' => 'utf8_unicode_ci', |
| 55 | 'prefix' => '', | 55 | 'prefix' => '', | ... | ... |
| ... | @@ -46,9 +46,9 @@ public function handle() | ... | @@ -46,9 +46,9 @@ public function handle() |
| 46 | $conn = array( | 46 | $conn = array( |
| 47 | 'driver' => 'mysql', | 47 | 'driver' => 'mysql', |
| 48 | 'host' => $central_ip, | 48 | 'host' => $central_ip, |
| 49 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 49 | 'database' => env('CENTRAL_DB'), |
| 50 | 'username' => env('DB_USERNAME', 'root'), | 50 | 'username' => env('CENTRAL_USERNAME'), |
| 51 | 'password' => env('DB_PASSWORD', ''), | 51 | 'password' => env('CENTRAL_PASSWORD'), |
| 52 | 'charset' => 'utf8', | 52 | 'charset' => 'utf8', |
| 53 | 'collation' => 'utf8_unicode_ci', | 53 | 'collation' => 'utf8_unicode_ci', |
| 54 | 'prefix' => '', | 54 | 'prefix' => '', | ... | ... |
| ... | @@ -46,9 +46,9 @@ public function handle() | ... | @@ -46,9 +46,9 @@ public function handle() |
| 46 | $conn = array( | 46 | $conn = array( |
| 47 | 'driver' => 'mysql', | 47 | 'driver' => 'mysql', |
| 48 | 'host' => $central_ip, | 48 | 'host' => $central_ip, |
| 49 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 49 | 'database' => env('CENTRAL_DB'), |
| 50 | 'username' => env('DB_USERNAME', 'root'), | 50 | 'username' => env('CENTRAL_USERNAME'), |
| 51 | 'password' => env('DB_PASSWORD', ''), | 51 | 'password' => env('CENTRAL_PASSWORD'), |
| 52 | 'charset' => 'utf8', | 52 | 'charset' => 'utf8', |
| 53 | 'collation' => 'utf8_unicode_ci', | 53 | 'collation' => 'utf8_unicode_ci', |
| 54 | 'prefix' => '', | 54 | 'prefix' => '', | ... | ... |
| ... | @@ -50,9 +50,9 @@ public function handle() | ... | @@ -50,9 +50,9 @@ public function handle() |
| 50 | $conn = array( | 50 | $conn = array( |
| 51 | 'driver' => 'mysql', | 51 | 'driver' => 'mysql', |
| 52 | 'host' => $central_ip, | 52 | 'host' => $central_ip, |
| 53 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 53 | 'database' => env('CENTRAL_DB'), |
| 54 | 'username' => env('DB_USERNAME', 'root'), | 54 | 'username' => env('CENTRAL_USERNAME'), |
| 55 | 'password' => env('DB_PASSWORD', ''), | 55 | 'password' => env('CENTRAL_PASSWORD'), |
| 56 | 'charset' => 'utf8', | 56 | 'charset' => 'utf8', |
| 57 | 'collation' => 'utf8_unicode_ci', | 57 | 'collation' => 'utf8_unicode_ci', |
| 58 | 'prefix' => '', | 58 | 'prefix' => '', | ... | ... |
| ... | @@ -50,9 +50,9 @@ public function handle() | ... | @@ -50,9 +50,9 @@ public function handle() |
| 50 | $conn = array( | 50 | $conn = array( |
| 51 | 'driver' => 'mysql', | 51 | 'driver' => 'mysql', |
| 52 | 'host' => $central_ip, | 52 | 'host' => $central_ip, |
| 53 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 53 | 'database' => env('CENTRAL_DB'), |
| 54 | 'username' => env('DB_USERNAME', 'root'), | 54 | 'username' => env('CENTRAL_USERNAME'), |
| 55 | 'password' => env('DB_PASSWORD', ''), | 55 | 'password' => env('CENTRAL_PASSWORD'), |
| 56 | 'charset' => 'utf8', | 56 | 'charset' => 'utf8', |
| 57 | 'collation' => 'utf8_unicode_ci', | 57 | 'collation' => 'utf8_unicode_ci', |
| 58 | 'prefix' => '', | 58 | 'prefix' => '', | ... | ... |
| ... | @@ -50,9 +50,9 @@ public function handle() | ... | @@ -50,9 +50,9 @@ public function handle() |
| 50 | $conn = array( | 50 | $conn = array( |
| 51 | 'driver' => 'mysql', | 51 | 'driver' => 'mysql', |
| 52 | 'host' => $central_ip, | 52 | 'host' => $central_ip, |
| 53 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 53 | 'database' => env('CENTRAL_DB'), |
| 54 | 'username' => env('DB_USERNAME', 'root'), | 54 | 'username' => env('CENTRAL_USERNAME'), |
| 55 | 'password' => env('DB_PASSWORD', ''), | 55 | 'password' => env('CENTRAL_PASSWORD'), |
| 56 | 'charset' => 'utf8', | 56 | 'charset' => 'utf8', |
| 57 | 'collation' => 'utf8_unicode_ci', | 57 | 'collation' => 'utf8_unicode_ci', |
| 58 | 'prefix' => '', | 58 | 'prefix' => '', | ... | ... |
| ... | @@ -50,9 +50,9 @@ public function handle() | ... | @@ -50,9 +50,9 @@ public function handle() |
| 50 | $conn = array( | 50 | $conn = array( |
| 51 | 'driver' => 'mysql', | 51 | 'driver' => 'mysql', |
| 52 | 'host' => $central_ip, | 52 | 'host' => $central_ip, |
| 53 | 'database' => env('DB_DATABASE', 'kstych_flexydial'), | 53 | 'database' => env('CENTRAL_DB'), |
| 54 | 'username' => env('DB_USERNAME', 'root'), | 54 | 'username' => env('CENTRAL_USERNAME'), |
| 55 | 'password' => env('DB_PASSWORD', ''), | 55 | 'password' => env('CENTRAL_PASSWORD'), |
| 56 | 'charset' => 'utf8', | 56 | 'charset' => 'utf8', |
| 57 | 'collation' => 'utf8_unicode_ci', | 57 | 'collation' => 'utf8_unicode_ci', |
| 58 | 'prefix' => '', | 58 | 'prefix' => '', | ... | ... |
| ... | @@ -47,11 +47,10 @@ protected $commands = [ | ... | @@ -47,11 +47,10 @@ protected $commands = [ |
| 47 | 'App\Console\Commands\BirthdayDate', | 47 | 'App\Console\Commands\BirthdayDate', |
| 48 | 'App\Console\Commands\bulkserverupload_data', | 48 | 'App\Console\Commands\bulkserverupload_data', |
| 49 | 'App\Console\Commands\bulkServerUpload_data3', | 49 | 'App\Console\Commands\bulkServerUpload_data3', |
| 50 | 'App\Console\Commands\Userlog_datavalidation', | 50 | 'App\Console\Commands\Calllogupdate', |
| 51 | 'App\Console\Commands\CreateCall', | 51 | 'App\Console\Commands\CreateCall', |
| 52 | 'App\Console\Commands\PredictiveCallHangUp', | 52 | 'App\Console\Commands\PredictiveCallHangUp', |
| 53 | 'App\Console\Commands\UpdateAvgRingSec', | 53 | 'App\Console\Commands\UpdateAvgRingSec', |
| 54 | |||
| 55 | ]; | 54 | ]; |
| 56 | 55 | ||
| 57 | /** | 56 | /** |
| ... | @@ -62,13 +61,13 @@ protected $commands = [ | ... | @@ -62,13 +61,13 @@ protected $commands = [ |
| 62 | */ | 61 | */ |
| 63 | protected function schedule(Schedule $schedule) | 62 | protected function schedule(Schedule $schedule) |
| 64 | { | 63 | { |
| 65 | $schedule->command('KstychDaily')->daily()->withoutOverlapping(); | 64 | //$schedule->command('KstychDaily')->daily()->withoutOverlapping(); |
| 66 | $schedule->command('UpdateAvgRingSec')->daily()->withoutOverlapping(); | 65 | $schedule->command('UpdateAvgRingSec')->daily()->withoutOverlapping(); |
| 67 | //$schedule->command('bulkServerUpload')->everyFiveMinutes()->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); | 66 | //$schedule->command('bulkServerUpload')->everyFiveMinutes()->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); |
| 68 | //$schedule->command('bulkserverupload_data')->everyMinute()->appendOutputTo(storage_path()."/reason/bulkserverupload_data.txt")->withoutOverlapping(); | 67 | //$schedule->command('bulkserverupload_data')->everyMinute()->appendOutputTo(storage_path()."/reason/bulkserverupload_data.txt")->withoutOverlapping(); |
| 69 | $schedule->command('bulkserverupload_data')->dailyAt('14:17')->appendOutputTo(storage_path()."/reason/bulkserverupload_data.txt")->withoutOverlapping(); | 68 | //$schedule->command('bulkserverupload_data')->dailyAt('14:17')->appendOutputTo(storage_path()."/reason/bulkserverupload_data.txt")->withoutOverlapping(); |
| 70 | $schedule->command('bulkServerUpload')->dailyAt('14:15')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); | 69 | //$schedule->command('bulkServerUpload')->dailyAt('14:15')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); |
| 71 | $schedule->command('bulkServerUpload_data3')->dailyAt('14:20')->appendOutputTo(storage_path()."/reason/bulkServerUpload_data3.txt")->withoutOverlapping(); | 70 | //$schedule->command('bulkServerUpload_data3')->dailyAt('14:20')->appendOutputTo(storage_path()."/reason/bulkServerUpload_data3.txt")->withoutOverlapping(); |
| 72 | 71 | ||
| 73 | //$schedule->command('relationship_tag')->everyMinute()->appendOutputTo(storage_path()."/reason/relationship_tag.txt")->withoutOverlapping(); | 72 | //$schedule->command('relationship_tag')->everyMinute()->appendOutputTo(storage_path()."/reason/relationship_tag.txt")->withoutOverlapping(); |
| 74 | //$schedule->command('calllog')->everyMinute()->appendOutputTo(storage_path()."/reason/calllog.txt")->withoutOverlapping(); | 73 | //$schedule->command('calllog')->everyMinute()->appendOutputTo(storage_path()."/reason/calllog.txt")->withoutOverlapping(); |
| ... | @@ -77,19 +76,18 @@ protected function schedule(Schedule $schedule) | ... | @@ -77,19 +76,18 @@ protected function schedule(Schedule $schedule) |
| 77 | //$schedule->command('supervisor_agent_rec')->everyMinute()->appendOutputTo(storage_path()."/reason/supervisor_agent_rec.txt")->withoutOverlapping(); | 76 | //$schedule->command('supervisor_agent_rec')->everyMinute()->appendOutputTo(storage_path()."/reason/supervisor_agent_rec.txt")->withoutOverlapping(); |
| 78 | //$schedule->command('supervisor_recommendation')->everyMinute()->appendOutputTo(storage_path()."/reason/supervisor_recommendation.txt")->withoutOverlapping(); | 77 | //$schedule->command('supervisor_recommendation')->everyMinute()->appendOutputTo(storage_path()."/reason/supervisor_recommendation.txt")->withoutOverlapping(); |
| 79 | //$schedule->command('question_tree')->everyMinute()->appendOutputTo(storage_path()."/reason/question_tree.txt")->withoutOverlapping(); | 78 | //$schedule->command('question_tree')->everyMinute()->appendOutputTo(storage_path()."/reason/question_tree.txt")->withoutOverlapping(); |
| 79 | //$schedule->command('bulkServerUpload')->dailyAt('10:08')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); | ||
| 80 | 80 | ||
| 81 | $schedule->command('Userlog_data')->dailyAt('01:10')->appendOutputTo(storage_path()."/reason/Userlog_data.txt")->withoutOverlapping(); | 81 | //$schedule->command('Userlog_data')->dailyAt('01:10')->appendOutputTo(storage_path()."/reason/Userlog_data.txt")->withoutOverlapping(); |
| 82 | |||
| 83 | //$schedule->command('Userlog_data')->everyMinute()->appendOutputTo(storage_path()."/reason/Userlog_data.txt")->withoutOverlapping(); | ||
| 84 | 82 | ||
| 85 | $schedule->command('bulkServerUpload')->dailyAt('14:45')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); | 83 | $schedule->command('bulkServerUpload')->dailyAt('14:45')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); |
| 86 | $schedule->command('bulkServerUpload_1')->dailyAt('16:18')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); | 84 | $schedule->command('bulkServerUpload_1')->dailyAt('16:12')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); |
| 87 | $schedule->command('bulkServerUpload_2')->dailyAt('17:45')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); | 85 | $schedule->command('bulkServerUpload_2')->dailyAt('16:45')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); |
| 88 | $schedule->command('bulkServerUpload_3')->dailyAt('19:15')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); | 86 | $schedule->command('bulkServerUpload_3')->dailyAt('21:15')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); |
| 89 | $schedule->command('bulkServerUpload_4')->dailyAt('20:45')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); | 87 | $schedule->command('bulkServerUpload_4')->dailyAt('23:45')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); |
| 90 | //$schedule->command('bulkServerUpload_daily')->everyMinute()->appendOutputTo(storage_path()."/reason/bulkServerUpload_daily.txt")->withoutOverlapping(); | 88 | //$schedule->command('bulkServerUpload_daily')->everyMinute()->appendOutputTo(storage_path()."/reason/bulkServerUpload_daily.txt")->withoutOverlapping(); |
| 91 | //$schedule->command('bulkServerUpload_daily')->everyMinute()->appendOutputTo(storage_path()."/reason/bulkserver_daily.txt")->withoutOverlapping(); | 89 | //$schedule->command('bulkServerUpload_daily')->everyMinute()->appendOutputTo(storage_path()."/reason/bulkserver_daily.txt")->withoutOverlapping(); |
| 92 | $schedule->command('BirthdayDate')->dailyAt('01:45')->appendOutputTo(storage_path()."/reason/BirthdayDate.txt")->withoutOverlapping(); | 90 | /*$schedule->command('BirthdayDate')->dailyAt('01:45')->appendOutputTo(storage_path()."/reason/BirthdayDate.txt")->withoutOverlapping(); |
| 93 | $schedule->command('bulkServerUpload_daily')->dailyAt('05:05')->appendOutputTo(storage_path()."/reason/bulkserver_daily.txt")->withoutOverlapping(); | 91 | $schedule->command('bulkServerUpload_daily')->dailyAt('05:05')->appendOutputTo(storage_path()."/reason/bulkserver_daily.txt")->withoutOverlapping(); |
| 94 | $schedule->command('bulkServerUpload_daily')->dailyAt('07:05')->appendOutputTo(storage_path()."/reason/bulkserver_daily.txt")->withoutOverlapping(); | 92 | $schedule->command('bulkServerUpload_daily')->dailyAt('07:05')->appendOutputTo(storage_path()."/reason/bulkserver_daily.txt")->withoutOverlapping(); |
| 95 | $schedule->command('bulkServerUpload_daily')->dailyAt('09:05')->appendOutputTo(storage_path()."/reason/bulkserver_daily.txt")->withoutOverlapping(); | 93 | $schedule->command('bulkServerUpload_daily')->dailyAt('09:05')->appendOutputTo(storage_path()."/reason/bulkserver_daily.txt")->withoutOverlapping(); |
| ... | @@ -102,7 +100,7 @@ protected function schedule(Schedule $schedule) | ... | @@ -102,7 +100,7 @@ protected function schedule(Schedule $schedule) |
| 102 | $schedule->command('CreportNine')->dailyAt('14:44')->appendOutputTo(storage_path()."/reason/CreportNine.txt")->withoutOverlapping(); | 100 | $schedule->command('CreportNine')->dailyAt('14:44')->appendOutputTo(storage_path()."/reason/CreportNine.txt")->withoutOverlapping(); |
| 103 | 101 | ||
| 104 | $schedule->command('CreportNine')->dailyAt('01:14')->appendOutputTo(storage_path()."/reason/CreportNine.txt")->withoutOverlapping(); | 102 | $schedule->command('CreportNine')->dailyAt('01:14')->appendOutputTo(storage_path()."/reason/CreportNine.txt")->withoutOverlapping(); |
| 105 | 103 | $schedule->command('Calllogupdate')->dailyAt('09:55')->appendOutputTo(storage_path()."/reason/calllog_update.txt")->withoutOverlapping(); | |
| 106 | //$schedule->command('CreportNine')->everyMinute()->appendOutputTo(storage_path()."/reason/CreportNine.txt")->withoutOverlapping(); | 104 | //$schedule->command('CreportNine')->everyMinute()->appendOutputTo(storage_path()."/reason/CreportNine.txt")->withoutOverlapping(); |
| 107 | //$schedule->command('CreportEight')->everyMinute()->appendOutputTo(storage_path()."/reason/CreportEight.txt")->withoutOverlapping(); | 105 | //$schedule->command('CreportEight')->everyMinute()->appendOutputTo(storage_path()."/reason/CreportEight.txt")->withoutOverlapping(); |
| 108 | $schedule->command('questionnaire_details')->hourly()->appendOutputTo(storage_path()."/reason/questionnaire_details.txt")->withoutOverlapping(); | 106 | $schedule->command('questionnaire_details')->hourly()->appendOutputTo(storage_path()."/reason/questionnaire_details.txt")->withoutOverlapping(); |
| ... | @@ -130,8 +128,7 @@ protected function schedule(Schedule $schedule) | ... | @@ -130,8 +128,7 @@ protected function schedule(Schedule $schedule) |
| 130 | 128 | ||
| 131 | //$schedule->command('relationship_data')->everyMinute()->appendOutputTo(storage_path()."/reason/relationship_data.txt")->withoutOverlapping(); | 129 | //$schedule->command('relationship_data')->everyMinute()->appendOutputTo(storage_path()."/reason/relationship_data.txt")->withoutOverlapping(); |
| 132 | //$schedule->command('table_create')->everyMinute()->appendOutputTo(storage_path()."/reason/table_create.txt")->withoutOverlapping(); | 130 | //$schedule->command('table_create')->everyMinute()->appendOutputTo(storage_path()."/reason/table_create.txt")->withoutOverlapping(); |
| 133 | 131 | */ | |
| 134 | //$schedule->command('Userlog_datavalidation')->everyMinute()->appendOutputTo(storage_path()."/reason/Userlog_datavalid.txt")->withoutOverlapping(); | ||
| 135 | } | 132 | } |
| 136 | 133 | ||
| 137 | } | 134 | } | ... | ... |
| 1 | <?php namespace App\Console; | ||
| 2 | |||
| 3 | use Illuminate\Console\Scheduling\Schedule; | ||
| 4 | use Illuminate\Foundation\Console\Kernel as ConsoleKernel; | ||
| 5 | |||
| 6 | class Kernel extends ConsoleKernel | ||
| 7 | { | ||
| 8 | |||
| 9 | /** | ||
| 10 | * The Artisan commands provided by your application. | ||
| 11 | * | ||
| 12 | * @var array | ||
| 13 | */ | ||
| 14 | protected $commands = [ | ||
| 15 | 'App\Console\Commands\KstychDaily', | ||
| 16 | 'App\Console\Commands\KstychPAMI', | ||
| 17 | 'App\Console\Commands\KstychPAGI', | ||
| 18 | 'App\Console\Commands\DailyLogout', | ||
| 19 | 'App\Console\Commands\bulkServerUpload', | ||
| 20 | 'App\Console\Commands\bulkServerUpload_1', | ||
| 21 | 'App\Console\Commands\bulkServerUpload_2', | ||
| 22 | 'App\Console\Commands\bulkServerUpload_3', | ||
| 23 | 'App\Console\Commands\bulkServerUpload_4', | ||
| 24 | //'App\Console\Commands\bulkServerUpload_5', | ||
| 25 | 'App\Console\Commands\bulkServerUpload_daily', | ||
| 26 | 'App\Console\Commands\InsertCrmArchive', | ||
| 27 | 'App\Console\Commands\DeleteCrmcalls', | ||
| 28 | 'App\Console\Commands\records_details', | ||
| 29 | 'App\Console\Commands\CreportEight', | ||
| 30 | 'App\Console\Commands\questionnaire_details', | ||
| 31 | 'App\Console\Commands\Userlog_data', | ||
| 32 | 'App\Console\Commands\lead_form_details', | ||
| 33 | 'App\Console\Commands\full_remark_details', | ||
| 34 | 'App\Console\Commands\recording_reconcilation', | ||
| 35 | 'App\Console\Commands\recording_reconcilation_metadata', | ||
| 36 | 'App\Console\Commands\dailyupload_calllog', | ||
| 37 | 'App\Console\Commands\dailyupload_questionaire', | ||
| 38 | 'App\Console\Commands\relationship_data', | ||
| 39 | 'App\Console\Commands\relationship_tag', | ||
| 40 | 'App\Console\Commands\supervisor_agent_rec', | ||
| 41 | 'App\Console\Commands\supervisor_recommendation', | ||
| 42 | 'App\Console\Commands\rlppb_details', | ||
| 43 | 'App\Console\Commands\question_tree', | ||
| 44 | //'App\Console\Commands\table_create', | ||
| 45 | //'App\Console\Commands\calllog', | ||
| 46 | //'App\Console\Commands\CreportNine', | ||
| 47 | //'App\Console\Commands\CreportTen', | ||
| 48 | 'App\Console\Commands\BirthdayDate', | ||
| 49 | 'App\Console\Commands\bulkserverupload_data', | ||
| 50 | ]; | ||
| 51 | |||
| 52 | /** | ||
| 53 | * Define the application's command schedule. | ||
| 54 | * | ||
| 55 | * @param \Illuminate\Console\Scheduling\Schedule $schedule | ||
| 56 | * @return void | ||
| 57 | */ | ||
| 58 | protected function schedule(Schedule $schedule) | ||
| 59 | { | ||
| 60 | $schedule->command('KstychDaily')->daily()->withoutOverlapping(); | ||
| 61 | //$schedule->command('bulkServerUpload')->everyFiveMinutes()->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); | ||
| 62 | |||
| 63 | $schedule->command('bulkserverupload_data')->dailyAt('01:45')->appendOutputTo(storage_path()."/reason/bulkserverupload_data.txt")->withoutOverlapping(); | ||
| 64 | |||
| 65 | //$schedule->command('relationship_tag')->everyMinute()->appendOutputTo(storage_path()."/reason/relationship_tag.txt")->withoutOverlapping(); | ||
| 66 | //$schedule->command('calllog')->everyMinute()->appendOutputTo(storage_path()."/reason/calllog.txt")->withoutOverlapping(); | ||
| 67 | //$schedule->command('rlppb_details')->everyMinute()->appendOutputTo(storage_path()."/reason/rlppb_details.txt")->withoutOverlapping(); | ||
| 68 | $schedule->command('BirthdayDate')->dailyAt('01:45')->appendOutputTo(storage_path()."/reason/BirthdayDate.txt")->withoutOverlapping(); | ||
| 69 | //$schedule->command('supervisor_agent_rec')->everyMinute()->appendOutputTo(storage_path()."/reason/supervisor_agent_rec.txt")->withoutOverlapping(); | ||
| 70 | //$schedule->command('supervisor_recommendation')->everyMinute()->appendOutputTo(storage_path()."/reason/supervisor_recommendation.txt")->withoutOverlapping(); | ||
| 71 | //$schedule->command('question_tree')->everyMinute()->appendOutputTo(storage_path()."/reason/question_tree.txt")->withoutOverlapping(); | ||
| 72 | |||
| 73 | $schedule->command('Userlog_data')->dailyAt('01:10')->appendOutputTo(storage_path()."/reason/Userlog_data.txt")->withoutOverlapping(); | ||
| 74 | |||
| 75 | $schedule->command('bulkServerUpload')->dailyAt('14:45')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); | ||
| 76 | $schedule->command('bulkServerUpload_1')->dailyAt('16:18')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); | ||
| 77 | $schedule->command('bulkServerUpload_2')->dailyAt('17:45')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); | ||
| 78 | $schedule->command('bulkServerUpload_3')->dailyAt('19:15')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); | ||
| 79 | $schedule->command('bulkServerUpload_4')->dailyAt('20:45')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping(); | ||
| 80 | //$schedule->command('bulkServerUpload_daily')->everyMinute()->appendOutputTo(storage_path()."/reason/bulkServerUpload_daily.txt")->withoutOverlapping(); | ||
| 81 | //$schedule->command('bulkServerUpload_daily')->everyMinute()->appendOutputTo(storage_path()."/reason/bulkserver_daily.txt")->withoutOverlapping(); | ||
| 82 | |||
| 83 | $schedule->command('bulkServerUpload_daily')->dailyAt('05:05')->appendOutputTo(storage_path()."/reason/bulkserver_daily.txt")->withoutOverlapping(); | ||
| 84 | $schedule->command('bulkServerUpload_daily')->dailyAt('07:05')->appendOutputTo(storage_path()."/reason/bulkserver_daily.txt")->withoutOverlapping(); | ||
| 85 | $schedule->command('bulkServerUpload_daily')->dailyAt('09:05')->appendOutputTo(storage_path()."/reason/bulkserver_daily.txt")->withoutOverlapping(); | ||
| 86 | $schedule->command('bulkServerUpload_daily')->dailyAt('11:05')->appendOutputTo(storage_path()."/reason/bulkserver_daily.txt")->withoutOverlapping(); | ||
| 87 | $schedule->command('bulkServerUpload_daily')->dailyAt('13:05')->appendOutputTo(storage_path()."/reason/bulkserver_daily.txt")->withoutOverlapping(); | ||
| 88 | |||
| 89 | $schedule->command('dailyupload_questionaire')->dailyAt('19:30')->appendOutputTo(storage_path()."/reason/dailyupload_questionaire.txt")->withoutOverlapping(); | ||
| 90 | //$schedule->command('CreportEight')->everyFiveMinutes()->appendOutputTo(storage_path()."/reason/CreportEight.txt")->withoutOverlapping(); | ||
| 91 | |||
| 92 | $schedule->command('CreportEight')->everyTenMinutes()->appendOutputTo(storage_path()."/reason/CreportEight.txt")->withoutOverlapping(); | ||
| 93 | //$schedule->command('CreportNine')->everyMinute()->appendOutputTo(storage_path()."/reason/CreportNine.txt")->withoutOverlapping(); | ||
| 94 | //$schedule->command('CreportTen')->everyMinute()->appendOutputTo(storage_path()."/reason/CreportTen.txt")->withoutOverlapping(); | ||
| 95 | //$schedule->command('CreportEight')->everyMinute()->appendOutputTo(storage_path()."/reason/CreportEight.txt")->withoutOverlapping(); | ||
| 96 | $schedule->command('questionnaire_details')->hourly()->appendOutputTo(storage_path()."/reason/questionnaire_details.txt")->withoutOverlapping(); | ||
| 97 | $schedule->command('InsertCrmArchive')->hourly()->appendOutputTo(storage_path()."/reason/InsertCrmArchive.txt")->withoutOverlapping(); | ||
| 98 | |||
| 99 | |||
| 100 | //$schedule->command('InsertCrmArchive')->everyMinute()->appendOutputTo(storage_path()."/reason/InsertCrmArchive.txt")->withoutOverlapping(); | ||
| 101 | $schedule->command('DeleteCrmcalls')->hourly()->withoutOverlapping(); | ||
| 102 | |||
| 103 | $schedule->command('DailyLogout')->dailyAt('14:30')->withoutOverlapping(); | ||
| 104 | |||
| 105 | $schedule->command('lead_form_details')->everyTenMinutes()->appendOutputTo(storage_path()."/reason/lead_form_details.txt")->withoutOverlapping(); | ||
| 106 | $schedule->command('records_details')->dailyAt('17:45')->appendOutputTo(storage_path()."/reason/records_details.txt")->withoutOverlapping(); | ||
| 107 | //$schedule->command('recording_reconcilation')->everyMinute()->appendOutputTo(storage_path()."/reason/recording_reconcilation.txt")->withoutOverlapping(); | ||
| 108 | //$schedule->command('recording_reconcilation_metadata')->everyMinute()->appendOutputTo(storage_path()."/reason/recording_reconcilation_metadata.txt")->withoutOverlapping(); | ||
| 109 | |||
| 110 | //$schedule->command('lead_form_details')->everyMinute()->appendOutputTo(storage_path()."/reason/lead_form_details.txt")->withoutOverlapping(); | ||
| 111 | |||
| 112 | $schedule->command('dailyupload_calllog')->dailyAt('19:30')->appendOutputTo(storage_path()."/reason/dailycalllog_records.txt")->withoutOverlapping(); | ||
| 113 | |||
| 114 | //$schedule->command('records_details')->everyMinute()->appendOutputTo(storage_path()."/reason/records_details.txt")->withoutOverlapping(); | ||
| 115 | $schedule->command('full_remark_details')->hourly()->appendOutputTo(storage_path()."/reason/full_remark_details.txt")->withoutOverlapping(); | ||
| 116 | //$schedule->command('questionnaire_details')->everyMinute()->appendOutputTo(storage_path()."/reason/questionnaire_details.txt")->withoutOverlapping(); | ||
| 117 | |||
| 118 | //$schedule->command('relationship_data')->everyMinute()->appendOutputTo(storage_path()."/reason/relationship_data.txt")->withoutOverlapping(); | ||
| 119 | //$schedule->command('table_create')->everyMinute()->appendOutputTo(storage_path()."/reason/table_create.txt")->withoutOverlapping(); | ||
| 120 | |||
| 121 | } | ||
| 122 | |||
| 123 | } |
| 1 | <?php | ||
| 2 | define('SMS_NOTCONTACTED',1); | ||
| 3 | define('SMS_THANKYOU',2); | ||
| 4 | $smsContactedSubdispositionsArr = array ('Contacted','Feedback'); | ||
| 5 | $smsNotContactedSubdispositionsArr = array ( | ||
| 6 | 'NC - Customer Traveling / Abroad', | ||
| 7 | 'NC - Customer in Meeting', | ||
| 8 | 'NC - Ringing / No response', | ||
| 9 | 'NC - Not Reachable', | ||
| 10 | 'NC - Switched off', | ||
| 11 | 'NC - Third Party' | ||
| 12 | ); | ||
| 13 | $smsTemplatesArr = array( | ||
| 14 | //SMS_NOTCONTACTED => "Dear Customer,Your Virtual Relationship Manager #name# from HDFC Bank tried reaching you. Kindly call #number# for all your banking and financial needs", | ||
| 15 | //SMS_NOTCONTACTED =>"Dear Customer, Your Virtual RM #name# from HDFC Bank tried reaching you. Kindly call #number# for all your banking and financial needs.", | ||
| 16 | SMS_NOTCONTACTED =>"Your RM is unable to contact you! | ||
| 17 | Call #name# @ #number# for any banking need. | ||
| 18 | Check & invest in our FD/RD @best rate. | ||
| 19 | Click here: bit.ly/2TqCdKA", | ||
| 20 | //SMS_THANKYOU =>"Thank you for speaking to your VirtualRM on #date# . Now also access your account 24/7 via NetBanking/MobileBanking. Download MobileBanking App: bit.ly/2ajTksK" | ||
| 21 | //SMS_THANKYOU =>"Thank you for speaking to your Virtual RM on #date#. Now also access your account 24/7 via Net / Mobile Banking. Download Mobile App: bit.ly/2ajTksK" | ||
| 22 | SMS_THANKYOU =>"Your opinion matters! | ||
| 23 | Thanks for talking & sharing your feedback on #number# with RM #name# | ||
| 24 | Check & invest in our FD/RD @best rate | ||
| 25 | Click: bit.ly/2TqCdKA" | ||
| 26 | ); | ||
| 27 | ?> |
application/app/Http/2502_routes.php
0 → 100644
| 1 | <?php | ||
| 2 | |||
| 3 | Route::get('/', array('uses'=> 'HomeController@index', 'as'=>'index.root')); | ||
| 4 | Route::get('index', array('uses'=> 'HomeController@index', 'as'=>'index.index')); | ||
| 5 | |||
| 6 | Route::get('test_table_8', 'Rom8Controller@testTable'); | ||
| 7 | Route::get('eg', 'egController@eg'); | ||
| 8 | |||
| 9 | Route::group(['middleware' => ['web']], function () { | ||
| 10 | |||
| 11 | Route::get('home', array('uses' => 'HomeController@home', 'as'=>'home.home')); | ||
| 12 | Route::get('login', array('uses'=> 'HomeController@login', 'as'=>'home.login')); | ||
| 13 | Route::post('login', array('uses'=> 'HomeController@do_login', 'as'=>'home.do_login')); | ||
| 14 | Route::get('logout', array('uses'=> 'HomeController@logout', 'as'=>'home.logout')); | ||
| 15 | Route::get('signup', array('uses'=> 'HomeController@signup', 'as'=>'home.signup')); | ||
| 16 | Route::post('signup', array('uses'=> 'HomeController@do_signup', 'as'=>'home.do_signup')); | ||
| 17 | |||
| 18 | Route::get('userfiles/{path}',array('uses'=>'HomeController@userfiles','as'=>'userfiles.get'))->where('path', '.*'); | ||
| 19 | |||
| 20 | Route::get('unsubscribe', array('uses'=> 'HomeController@unsubscribe', 'as'=>'home.unsubscribe')); | ||
| 21 | Route::any('forgotpassword', array('uses'=> 'HomeController@forgotpassword', 'as'=>'signup.forgotpassword')); | ||
| 22 | |||
| 23 | Route::get('profile', array('before' => 'auth','uses' => 'HomeController@profile', 'as'=>'profile.index')); | ||
| 24 | Route::post('profile', array('before' => 'auth','uses' => 'HomeController@do_profile', 'as'=>'profile.update')); | ||
| 25 | |||
| 26 | Route::get('msie', array('uses'=> 'HomeController@msie', 'as'=>'login.msie')); | ||
| 27 | Route::any('ajaxerror', array('uses'=> 'HomeController@ajaxerror', 'as'=>'home.ajaxerror')); | ||
| 28 | Route::any('gettoken', array('uses'=> 'HomeController@gettoken', 'as'=>'home.gettoken')); | ||
| 29 | Route::any('idleapp', array('uses'=> 'HomeController@idleapp', 'as'=>'home.idleapp')); | ||
| 30 | |||
| 31 | Route::any('fileupload', array('uses'=> 'HomeController@fileupload', 'as'=>'upload.file')); | ||
| 32 | Route::get('cron', array('uses'=> 'HomeController@cron', 'as'=>'cron.cron')); | ||
| 33 | Route::get('style', array('uses'=> 'HomeController@style', 'as'=>'style.index')); | ||
| 34 | Route::get('jshead', array('uses'=> 'HomeController@jshead', 'as'=>'jshead.index')); | ||
| 35 | Route::get('jsbody', array('uses'=> 'HomeController@jsbody', 'as'=>'jsbody.index')); | ||
| 36 | |||
| 37 | Route::resource('dashboard','DashboardController'); | ||
| 38 | Route::resource('notification','NotificationController'); | ||
| 39 | Route::resource('message','MessageController'); | ||
| 40 | Route::resource('task','TaskController'); | ||
| 41 | Route::resource('user','UserController'); | ||
| 42 | Route::resource('group','GroupController'); | ||
| 43 | Route::resource('role','RoleController'); | ||
| 44 | Route::resource('dispositionPlan','DispositionPlanController'); | ||
| 45 | |||
| 46 | Route::resource('master','MasterController'); | ||
| 47 | Route::resource('admin','AdminController'); | ||
| 48 | Route::resource('record','RecordController'); | ||
| 49 | Route::resource('campaign','CampaignController'); | ||
| 50 | |||
| 51 | Route::resource('dialer','DialerController'); | ||
| 52 | Route::resource('hr','HRController'); | ||
| 53 | Route::resource('social','SocialController'); | ||
| 54 | Route::resource('web','WebController'); | ||
| 55 | |||
| 56 | Route::get('notes', array('uses' => 'NotesController@loadQuestions', 'as'=>'questionare.load_questions')); | ||
| 57 | Route::post('notes',array('uses' => 'NotesController@store', 'as'=>'notes.store')); | ||
| 58 | |||
| 59 | Route::get('questionare/{qid?}/{optid?}/{level?}', array('uses' => 'QuestionareController@loadQuestions', 'as'=>'questionare.load_questions')); | ||
| 60 | Route::post('questionare', array('uses' => 'QuestionareController@saveQuestionAire', 'as'=>'questionare.save')); | ||
| 61 | //Route::get('notes', array('uses' => 'NotesController@index', 'as'=>'notes.index')); | ||
| 62 | //Route::resource('notesupdate','NotesController'); | ||
| 63 | |||
| 64 | Route::get('exceldownload', function() | ||
| 65 | { | ||
| 66 | return view("layout.module.userupload.exceldata"); | ||
| 67 | }); | ||
| 68 | |||
| 69 | Route::post('useruploaddata', array('uses' => 'UserController@userUpload', 'as'=>'useruploaddata')); | ||
| 70 | |||
| 71 | //Supervisor Call Mangement - By Manish on 16-02-17 | ||
| 72 | Route::get('SupervisorModule', array('uses'=> 'RecordController@supervisorUpload', 'as'=>'upload.comments')); | ||
| 73 | |||
| 74 | //Supervisor Call Mangement - By Manish on 22-03-17 | ||
| 75 | Route::post('complaint', array('uses'=> 'ComplaintController@saveComplaint', 'as'=>'upload.complaint')); | ||
| 76 | Route::post('resclassUnit', array('uses'=> 'ComplaintController@getBranchName', 'as'=>'get.branchname')); | ||
| 77 | Route::post('childcase', array('uses'=> 'ComplaintController@saveChildCase', 'as'=>'upload.case')); | ||
| 78 | |||
| 79 | //Supervisor Message Announcement - By Manish on 12-04-17 | ||
| 80 | Route::get('category/{resClassUnit}', array('uses'=> 'ComplaintController@getCat', 'as'=>'get.cat')); | ||
| 81 | Route::get('subcategory/{catId}/{resClassUnit}', array('uses'=> 'ComplaintController@getSubCat', 'as'=>'get.subcat')); | ||
| 82 | |||
| 83 | Route::post('SupervisorMessage', array('uses'=> 'MessageController@sendSupVisorMessage', 'as'=>'send.message')); | ||
| 84 | Route::get('supmessage/{msg_id?}/{username?}', array('uses'=> 'MessageController@viewSupVisorMessage', 'as'=>'view.allmessage')); | ||
| 85 | Route::get('viewmessage/{msg_id?}/{username?}', array('uses'=> 'MessageController@viewMessage', 'as'=>'view.message')); | ||
| 86 | |||
| 87 | //Addition of Customer Racing | ||
| 88 | Route::post('custrace', array('uses'=> 'RacingCustomerController@saveRacingCustomer', 'as'=>'upload.raccust')); | ||
| 89 | |||
| 90 | //Addition of Lead Entry Form | ||
| 91 | Route::post('leadentryform', array('uses'=> 'LeadEntryFormController@saveLeadEntryFormDetails', 'as'=>'upload.rleadform')); | ||
| 92 | Route::post('oaentryform', array('uses'=> 'OneAssistController@saveOneAssistFormDetails', 'as'=>'upload.oaleadform')); | ||
| 93 | |||
| 94 | Route::post('racingcustupdate',array('uses'=> 'RacingCustomerController@updateracingcust', 'as'=>'upload.updateraccust')); | ||
| 95 | Route::get('dialmode', array('uses'=> 'DialModeController@dialmodeview', 'as'=>'view.module')); | ||
| 96 | Route::post('dialmodeassign', array('uses'=> 'DialModeController@dialmodeassign', 'as'=>'assign.dialmodes')); | ||
| 97 | ///for the rlp pbwise | ||
| 98 | Route::get('rlp', array('uses'=> 'RecordController@rlpPbwise', 'as'=>'rlppb.comments')); | ||
| 99 | |||
| 100 | }); |
This diff is collapsed.
Click to expand it.
| ... | @@ -79,7 +79,6 @@ class DialModeController extends Controller { | ... | @@ -79,7 +79,6 @@ class DialModeController extends Controller { |
| 79 | $data['username'] = $username; | 79 | $data['username'] = $username; |
| 80 | $data['callingmodeArr'] = array("Progressive", "Manual", "Incoming", "Predictive"); | 80 | $data['callingmodeArr'] = array("Progressive", "Manual", "Incoming", "Predictive"); |
| 81 | 81 | ||
| 82 | |||
| 83 | return view('layout.module.dialmode.index',$data); | 82 | return view('layout.module.dialmode.index',$data); |
| 84 | } | 83 | } |
| 85 | public function dialmodeassign() | 84 | public function dialmodeassign() | ... | ... |
This diff is collapsed.
Click to expand it.
| 1 | <?php namespace App\Http\Controllers; | ||
| 2 | |||
| 3 | use Auth; | ||
| 4 | use Input; | ||
| 5 | use Config; | ||
| 6 | use Session; | ||
| 7 | use DB; | ||
| 8 | use App\Services\FormBuilder; | ||
| 9 | use Illuminate\Http\Request; | ||
| 10 | use Response; | ||
| 11 | use App\Models\Disposition; | ||
| 12 | use App\Models\SubDisposition; | ||
| 13 | |||
| 14 | class DispositionController extends Controller { | ||
| 15 | |||
| 16 | |||
| 17 | public function __construct() | ||
| 18 | { | ||
| 19 | $this->middleware('auth'); | ||
| 20 | $this->middleware('module_access'); | ||
| 21 | } | ||
| 22 | |||
| 23 | public function index() | ||
| 24 | { | ||
| 25 | $data['dispositions']= Disposition::join('sub_disposition', 'disposition.id', '=', 'sub_disposition.dispo_id') | ||
| 26 | ->select('disposition.id as dispoId', 'disposition.name as disposition','disposition.code as code','disposition.status AS status', | ||
| 27 | DB::raw('count(*) as totalSubDispo, sub_disposition.id'), | ||
| 28 | DB::raw('GROUP_CONCAT(sub_disposition.name) as sunDispoName, sub_disposition.name')) | ||
| 29 | ->groupBy('sub_disposition.dispo_id') | ||
| 30 | ->get(); | ||
| 31 | |||
| 32 | return view("layout.module.disposition.index", $data); | ||
| 33 | } | ||
| 34 | public function create() | ||
| 35 | { | ||
| 36 | return view('layout.module.disposition.create'); | ||
| 37 | } | ||
| 38 | public function store(Request $request) | ||
| 39 | { | ||
| 40 | $action = Input::get("action"); | ||
| 41 | |||
| 42 | if($action == 'isExists'){ | ||
| 43 | $disposition = Input::get("disposition"); | ||
| 44 | $code = Input::get("code"); | ||
| 45 | $exists=Disposition::where("name","=",$disposition)->orwhere("code","=",$code)->first(); | ||
| 46 | if($exists){ | ||
| 47 | $dispositionId = Input::get("dispoId"); | ||
| 48 | if($dispositionId == $exists->id){ | ||
| 49 | return "false"; | ||
| 50 | } | ||
| 51 | return "true"; | ||
| 52 | }else{ | ||
| 53 | return "false"; | ||
| 54 | } | ||
| 55 | } | ||
| 56 | |||
| 57 | if($action == 'createDisposition'){ | ||
| 58 | $code = Input::get("code"); | ||
| 59 | $disposition = Input::get("disposition"); | ||
| 60 | $subDisposition = Input::get("subDisposition"); | ||
| 61 | $status = Input::get("status"); | ||
| 62 | |||
| 63 | $disposition = Disposition::create([ | ||
| 64 | 'code' => $code, | ||
| 65 | 'name' => $disposition, | ||
| 66 | 'status' => $status, | ||
| 67 | 'created_at' => date("Y-m-d H:i:s"), | ||
| 68 | 'updated_at' => date("Y-m-d H:i:s") | ||
| 69 | ]); | ||
| 70 | |||
| 71 | $dispoId = $disposition->id; | ||
| 72 | |||
| 73 | foreach ($subDisposition as $key => $value) { | ||
| 74 | $subDisposition = SubDisposition::create([ | ||
| 75 | 'dispo_id' => $dispoId, | ||
| 76 | 'name' => $value, | ||
| 77 | 'created_at' => date("Y-m-d H:i:s"), | ||
| 78 | 'updated_at' => date("Y-m-d H:i:s") | ||
| 79 | ]); | ||
| 80 | } | ||
| 81 | return; | ||
| 82 | |||
| 83 | } | ||
| 84 | |||
| 85 | if($action == 'updateDisposition'){ | ||
| 86 | $dispoId = Input::get("dispoId"); | ||
| 87 | $code = Input::get("code"); | ||
| 88 | $disposition = Input::get("disposition"); | ||
| 89 | $subDisposition = Input::get("subDisposition"); | ||
| 90 | $status = Input::get("status"); | ||
| 91 | |||
| 92 | Disposition::where('id', $dispoId) | ||
| 93 | ->update([ | ||
| 94 | 'code' => $code, | ||
| 95 | 'name' => $disposition, | ||
| 96 | 'status' => $status]); | ||
| 97 | |||
| 98 | SubDisposition::where('dispo_id', $dispoId)->delete(); | ||
| 99 | |||
| 100 | foreach ($subDisposition as $key => $value) { | ||
| 101 | $subDisposition = SubDisposition::create([ | ||
| 102 | 'dispo_id' => $dispoId, | ||
| 103 | 'name' => $value, | ||
| 104 | 'created_at' => date("Y-m-d H:i:s"), | ||
| 105 | 'updated_at' => date("Y-m-d H:i:s") | ||
| 106 | ]); | ||
| 107 | } | ||
| 108 | return; | ||
| 109 | |||
| 110 | } | ||
| 111 | } | ||
| 112 | public function show($id) | ||
| 113 | { | ||
| 114 | |||
| 115 | } | ||
| 116 | public function edit($id) | ||
| 117 | { | ||
| 118 | $data['disposition']= Disposition::join('sub_disposition', 'disposition.id', '=', 'sub_disposition.dispo_id') | ||
| 119 | ->select('disposition.id AS dispoId', 'disposition.name as disposition','disposition.code as code','disposition.status AS status', | ||
| 120 | DB::raw('count(*) as totalSubDispo, sub_disposition.id'), | ||
| 121 | DB::raw('GROUP_CONCAT(sub_disposition.name) as sunDispoName, sub_disposition.name')) | ||
| 122 | ->groupBy('sub_disposition.dispo_id') | ||
| 123 | ->where('disposition.id','=',$id) | ||
| 124 | ->get()->first(); | ||
| 125 | |||
| 126 | return view('layout.module.disposition.edit',$data); | ||
| 127 | } | ||
| 128 | public function update($id) | ||
| 129 | { | ||
| 130 | |||
| 131 | } | ||
| 132 | public function destroy($id) | ||
| 133 | { | ||
| 134 | } | ||
| 135 | public function dashboard() | ||
| 136 | { | ||
| 137 | } | ||
| 138 | } |
| 1 | <?php namespace App\Http\Controllers; | ||
| 2 | |||
| 3 | use Auth; | ||
| 4 | use Input; | ||
| 5 | use Config; | ||
| 6 | use Session; | ||
| 7 | use DB; | ||
| 8 | use App\Services\FormBuilder; | ||
| 9 | use Illuminate\Http\Request; | ||
| 10 | use Response; | ||
| 11 | use App\Models\Disposition; | ||
| 12 | use App\Models\SubDisposition; | ||
| 13 | use App\Models\DispositionPlan; | ||
| 14 | use App\Models\DispositionPlanConfig; | ||
| 15 | |||
| 16 | class DispositionPlanController extends Controller { | ||
| 17 | |||
| 18 | |||
| 19 | public function __construct() | ||
| 20 | { | ||
| 21 | $this->middleware('auth'); | ||
| 22 | $this->middleware('module_access'); | ||
| 23 | } | ||
| 24 | |||
| 25 | public function index() | ||
| 26 | { | ||
| 27 | $data['dispositionPlan']= DispositionPlan::leftjoin('disposition_plan_config', 'disposition_plan.id', '=', 'disposition_plan_config.dispo_plan_id') | ||
| 28 | ->select('disposition_plan.id as dispositionPlanId', 'disposition_plan.name as name','disposition_plan.status AS status', | ||
| 29 | DB::raw('count(*) as totalDisposition, disposition_plan_config.id'), | ||
| 30 | DB::raw('GROUP_CONCAT(disposition_plan_config.disposition) as disposition, disposition_plan_config.disposition')) | ||
| 31 | ->groupBy('disposition_plan_config.dispo_plan_id') | ||
| 32 | //->where('status','active') | ||
| 33 | ->get(); | ||
| 34 | |||
| 35 | return view("layout.module.dispositionplan.index", $data); | ||
| 36 | } | ||
| 37 | public function create() | ||
| 38 | { | ||
| 39 | $data['dispositionEntities'] = Disposition::join('sub_disposition', 'disposition.id', '=', 'sub_disposition.dispo_id') | ||
| 40 | ->select('disposition.id as dispoId', 'disposition.name as disposition','disposition.code as code','disposition.status AS status', | ||
| 41 | DB::raw('count(*) as totalSubDispo, sub_disposition.id'), | ||
| 42 | DB::raw('GROUP_CONCAT(sub_disposition.name) as sunDispoName, sub_disposition.name')) | ||
| 43 | ->groupBy('sub_disposition.dispo_id') | ||
| 44 | ->where('status','active') | ||
| 45 | ->get(); | ||
| 46 | |||
| 47 | return view('layout.module.dispositionplan.create', $data); | ||
| 48 | } | ||
| 49 | public function store(Request $request) | ||
| 50 | { | ||
| 51 | $action = Input::get("action"); | ||
| 52 | |||
| 53 | if($action == 'isExists'){ | ||
| 54 | $plan = Input::get("plan"); | ||
| 55 | $exists=DispositionPlan::where("name","=",$plan)->first(); | ||
| 56 | |||
| 57 | if($exists){ | ||
| 58 | $planId = Input::get("dispositionPlanId"); | ||
| 59 | if($planId == $exists->id){ | ||
| 60 | return "false"; | ||
| 61 | } | ||
| 62 | return "true"; | ||
| 63 | }else{ | ||
| 64 | return "false"; | ||
| 65 | } | ||
| 66 | } | ||
| 67 | |||
| 68 | if($action == 'createDispositionPlan'){ | ||
| 69 | $plan = Input::get("plan"); | ||
| 70 | $dispositionList = Input::get("disposition"); | ||
| 71 | $subDisposition = Input::get("subDisposition"); | ||
| 72 | $status = Input::get("status"); | ||
| 73 | |||
| 74 | $dispositionPlan = DispositionPlan::create([ | ||
| 75 | 'name' => $plan, | ||
| 76 | 'status' => $status, | ||
| 77 | 'created_at' => date("Y-m-d H:i:s"), | ||
| 78 | 'updated_at' => date("Y-m-d H:i:s") | ||
| 79 | ]); | ||
| 80 | |||
| 81 | foreach ($dispositionList as $key => $disposition) { | ||
| 82 | $dispositionPlanConfig = DispositionPlanConfig::create([ | ||
| 83 | 'dispo_plan_id' => $dispositionPlan->id, | ||
| 84 | 'disposition' => $disposition, | ||
| 85 | 'sub_disposition' => implode(",", $subDisposition[$key]), | ||
| 86 | 'created_at' => date("Y-m-d H:i:s"), | ||
| 87 | 'updated_at' => date("Y-m-d H:i:s") | ||
| 88 | ]); | ||
| 89 | } | ||
| 90 | return; | ||
| 91 | } | ||
| 92 | |||
| 93 | if($action == 'updateDispositionPlan'){ | ||
| 94 | $dispositionPlanId = Input::get("dispositionPlanId"); | ||
| 95 | $plan = Input::get("plan"); | ||
| 96 | $dispositionList = Input::get("disposition"); | ||
| 97 | $subDisposition = Input::get("subDisposition"); | ||
| 98 | $status = Input::get("status"); | ||
| 99 | |||
| 100 | DispositionPlan::where('id', $dispositionPlanId) | ||
| 101 | ->update(['name' => $plan, | ||
| 102 | 'status' => $status, | ||
| 103 | 'updated_at' => date("Y-m-d H:i:s") | ||
| 104 | ]); | ||
| 105 | |||
| 106 | DispositionPlanConfig::where('dispo_plan_id', $dispositionPlanId)->delete(); | ||
| 107 | |||
| 108 | foreach ($dispositionList as $key => $disposition) { | ||
| 109 | $dispositionPlanConfig = DispositionPlanConfig::create([ | ||
| 110 | 'dispo_plan_id' => $dispositionPlanId, | ||
| 111 | 'disposition' => $disposition, | ||
| 112 | 'sub_disposition' => implode(",", $subDisposition[$key]), | ||
| 113 | 'created_at' => date("Y-m-d H:i:s"), | ||
| 114 | 'updated_at' => date("Y-m-d H:i:s") | ||
| 115 | ]); | ||
| 116 | } | ||
| 117 | return; | ||
| 118 | } | ||
| 119 | } | ||
| 120 | public function show($id) | ||
| 121 | { | ||
| 122 | |||
| 123 | } | ||
| 124 | public function edit($id) | ||
| 125 | { | ||
| 126 | $data['dispositionEntities'] = Disposition::join('sub_disposition', 'disposition.id', '=', 'sub_disposition.dispo_id') | ||
| 127 | ->select('disposition.id as dispoId', 'disposition.name as disposition','disposition.code as code','disposition.status AS status', | ||
| 128 | DB::raw('count(*) as totalSubDispo, sub_disposition.id'), | ||
| 129 | DB::raw('GROUP_CONCAT(sub_disposition.name) as sunDispoName, sub_disposition.name')) | ||
| 130 | ->groupBy('sub_disposition.dispo_id') | ||
| 131 | ->where('status','active') | ||
| 132 | ->get(); | ||
| 133 | |||
| 134 | $data['dispositionPlan']= DispositionPlan::join('disposition_plan_config', 'disposition_plan.id', '=', 'disposition_plan_config.dispo_plan_id') | ||
| 135 | ->select('disposition_plan.id as dispositionPlanId', 'disposition_plan.name as name','disposition_plan.status AS status','disposition_plan_config.disposition as disposition','disposition_plan_config.sub_disposition as sub_disposition') | ||
| 136 | ->where('disposition_plan.id','=',$id) | ||
| 137 | ->get(); | ||
| 138 | |||
| 139 | |||
| 140 | return view('layout.module.dispositionplan.edit',$data); | ||
| 141 | } | ||
| 142 | public function update($id) | ||
| 143 | { | ||
| 144 | |||
| 145 | } | ||
| 146 | public function destroy($id) | ||
| 147 | { | ||
| 148 | } | ||
| 149 | public function dashboard() | ||
| 150 | { | ||
| 151 | } | ||
| 152 | } |
| ... | @@ -17,7 +17,6 @@ use Request; | ... | @@ -17,7 +17,6 @@ use Request; |
| 17 | use Cache; | 17 | use Cache; |
| 18 | use File; | 18 | use File; |
| 19 | use Route; | 19 | use Route; |
| 20 | use Log; | ||
| 21 | 20 | ||
| 22 | use App\Models\Group; | 21 | use App\Models\Group; |
| 23 | use App\Models\Sipid; | 22 | use App\Models\Sipid; |
| ... | @@ -104,7 +103,11 @@ class HomeController extends Controller { | ... | @@ -104,7 +103,11 @@ class HomeController extends Controller { |
| 104 | $cliarr['keepconf']=Config::get("app.kDialer_keeplocalconf"); | 103 | $cliarr['keepconf']=Config::get("app.kDialer_keeplocalconf"); |
| 105 | //get a free sip id | 104 | //get a free sip id |
| 106 | $server=explode(":",$user->exten); | 105 | $server=explode(":",$user->exten); |
| 106 | //$sipid=Sipid::where("status","=","0")->where('updated_at','<=',date("Y-m-d H:i:s",time()-600))->orderBy('updated_at','asc')->where('server','!=',''); | ||
| 107 | $sipid=Sipid::where("status","=","0")->where('updated_at','<=',date("Y-m-d H:i:s",time()-600))->orderBy('updated_at','asc')->where('server','=',env('app_ip'))->first(); | 107 | $sipid=Sipid::where("status","=","0")->where('updated_at','<=',date("Y-m-d H:i:s",time()-600))->orderBy('updated_at','asc')->where('server','=',env('app_ip'))->first(); |
| 108 | //if(isset($server[2]))$sipid=$sipid->where('server','=',$server[2]); | ||
| 109 | |||
| 110 | //$sipid=$sipid->first(); | ||
| 108 | if(!$sipid)return Response::make("Error : Cant Allocate Data Channel. Giving Up."); | 111 | if(!$sipid)return Response::make("Error : Cant Allocate Data Channel. Giving Up."); |
| 109 | $sipid->clients=json_encode($cliarr); | 112 | $sipid->clients=json_encode($cliarr); |
| 110 | $sipid->user=$user->id; | 113 | $sipid->user=$user->id; | ... | ... |
| 1 | <?php | ||
| 2 | |||
| 3 | namespace App\Http\Controllers; | ||
| 4 | |||
| 5 | |||
| 6 | use Auth; | ||
| 7 | use Input; | ||
| 8 | use Response; | ||
| 9 | use Config; | ||
| 10 | use App\Models\OutputReport; | ||
| 11 | use App\Models\OutputProduct; | ||
| 12 | use App\Models\CRMCall; | ||
| 13 | use App\Models\User; | ||
| 14 | use Illuminate\Http\Request; | ||
| 15 | use Illuminate\Support\Facades\DB; | ||
| 16 | |||
| 17 | use App\Http\Requests; | ||
| 18 | |||
| 19 | class OutputReportController extends Controller | ||
| 20 | { | ||
| 21 | /** | ||
| 22 | * Display a listing of the resource. | ||
| 23 | * | ||
| 24 | * @return \Illuminate\Http\Response | ||
| 25 | */ | ||
| 26 | public function index() | ||
| 27 | { | ||
| 28 | |||
| 29 | } | ||
| 30 | |||
| 31 | /** | ||
| 32 | * Show the form for creating a new resource. | ||
| 33 | * | ||
| 34 | * @return \Illuminate\Http\Response | ||
| 35 | */ | ||
| 36 | public function createOutputReport() | ||
| 37 | { | ||
| 38 | |||
| 39 | } | ||
| 40 | |||
| 41 | /** | ||
| 42 | * Store a newly created resource in storage. | ||
| 43 | * | ||
| 44 | * @param \Illuminate\Http\Request $request | ||
| 45 | * @return \Illuminate\Http\Response | ||
| 46 | */ | ||
| 47 | public function store(Request $request) | ||
| 48 | { | ||
| 49 | $action=Input::get('action'); | ||
| 50 | //echo $action; | ||
| 51 | if($action=="createOutputReport"){ | ||
| 52 | |||
| 53 | $products = $request->input('products'); | ||
| 54 | //print_r($products); | ||
| 55 | //$totalIncome = 0; | ||
| 56 | foreach ($products as $key => $value) { | ||
| 57 | |||
| 58 | $outputReport = OutputReport::firstOrCreate( | ||
| 59 | array( | ||
| 60 | 'product_id' => $value['productId'], | ||
| 61 | 'user_id' => Auth::user()->id | ||
| 62 | ) | ||
| 63 | ); | ||
| 64 | //$outputReport->user_id = Auth::user()->id; | ||
| 65 | $outputReport->user_name = Auth::user()->username; | ||
| 66 | $outputReport->date = date("Y-m-d"); | ||
| 67 | $outputReport->call_attempts = $request->input('noOfAttempts'); | ||
| 68 | $outputReport->call_contacts = $request->input('noOfContacts'); | ||
| 69 | $outputReport->call_unique_contacts = $request->input('uniqueContacts'); | ||
| 70 | // $totalIncome = $totalIncome + ($value['lc'] * $value['lcAmt']); | ||
| 71 | |||
| 72 | if($value['lc'] != '' && $value['lcAmt'] != ''){ | ||
| 73 | $outputReport->income = $value['lc'] * $value['lcAmt']; | ||
| 74 | } | ||
| 75 | $outputReport->product_name = $value['product']; | ||
| 76 | $outputReport->lead_generated = $value['lg']; | ||
| 77 | $outputReport->lead_generated_amount = $value['lgAmt']; | ||
| 78 | $outputReport->lead_closed = $value['lc']; | ||
| 79 | $outputReport->lead_closed_amount = $value['lcAmt']; | ||
| 80 | $outputReport->created_at = date('Y-m-d H:i:s'); | ||
| 81 | $outputReport->updated_at =date('Y-m-d H:i:s'); | ||
| 82 | $outputReport->save(); | ||
| 83 | |||
| 84 | |||
| 85 | } | ||
| 86 | } | ||
| 87 | } | ||
| 88 | |||
| 89 | /** | ||
| 90 | * Display the specified resource. | ||
| 91 | * | ||
| 92 | * @param int $id | ||
| 93 | * @return \Illuminate\Http\Response | ||
| 94 | */ | ||
| 95 | public function show($id) | ||
| 96 | { | ||
| 97 | if($id=="reportdata") | ||
| 98 | { | ||
| 99 | //echo $id; | ||
| 100 | $data = array(); | ||
| 101 | $disabled = ""; | ||
| 102 | $dashboarduser=Auth::user(); | ||
| 103 | |||
| 104 | if($dashboarduser->usertype == "Supervisor"){ | ||
| 105 | $disabled = "disabled"; | ||
| 106 | } | ||
| 107 | //if($dashboarduser->usertype == "User"){ | ||
| 108 | // output reports | ||
| 109 | $products = DB::table('output_products') | ||
| 110 | ->select('id as productId','name','status') | ||
| 111 | ->where('status', '1') | ||
| 112 | ->orderBy('output_products.id') | ||
| 113 | ->get(); | ||
| 114 | $report = DB::table('output_report') | ||
| 115 | ->where('user_id',Auth::user()->id) | ||
| 116 | ->where('date',DATE("Y-m-d",time())) | ||
| 117 | ->get(); | ||
| 118 | |||
| 119 | |||
| 120 | $outputReport = array(); | ||
| 121 | foreach ($products as $pkey => $pvalue) { | ||
| 122 | |||
| 123 | $outputReport[$pvalue->productId] = array('name' => $pvalue->name, 'productId' => $pvalue->productId); | ||
| 124 | |||
| 125 | foreach ($report as $key => $value) { | ||
| 126 | |||
| 127 | if($value->product_id == $pvalue->productId){ | ||
| 128 | $outputReport[$value->product_id]['lead_generated'] = $value->lead_generated; | ||
| 129 | $outputReport[$value->product_id]['lead_generated_amount'] = $value->lead_generated_amount; | ||
| 130 | $outputReport[$value->product_id]['lead_closed'] = $value->lead_closed; | ||
| 131 | $outputReport[$value->product_id]['lead_closed_amount'] = $value->lead_closed_amount; | ||
| 132 | |||
| 133 | } | ||
| 134 | } | ||
| 135 | |||
| 136 | } | ||
| 137 | |||
| 138 | // total income | ||
| 139 | $totalIncome = DB::select("select sum(income) as income from output_report where user_id=".Auth::user()->id." and date='".date('Y-m-d',time())."'"); | ||
| 140 | |||
| 141 | // noOfAttempts | ||
| 142 | $noOfAttempts = CRMCall::where('userstatus','!=','InboundDROP')->where('created_at','>',date('Y-m-d',time())); | ||
| 143 | |||
| 144 | $noOfContacts = CRMCall::whereIn('usersubstatus',["Contacted","Feedback"])->where('created_at','>',date('Y-m-d',time())); | ||
| 145 | |||
| 146 | $uniqueContacts = DB::table('crmcalls')->select(DB::raw('count(distinct(number)) as total'))->whereIn('usersubstatus',["Contacted","Feedback"])->where('created_at','>',date('Y-m-d',time())); | ||
| 147 | //print_r($uniqueContacts); | ||
| 148 | $noOfAttempts = $noOfAttempts->where('user_id','=',$dashboarduser->id)->count(); | ||
| 149 | $noOfContacts = $noOfContacts->where('user_id','=',$dashboarduser->id)->count(); | ||
| 150 | $uniqueContacts =$uniqueContacts->where('user_id','=',$dashboarduser->id)->get(); | ||
| 151 | $data['disabled'] = $disabled; | ||
| 152 | $data['products'] = $outputReport; | ||
| 153 | $data['totalIncome'] = $totalIncome[0]->income; | ||
| 154 | $data['noOfAttempts'] = $noOfAttempts; | ||
| 155 | $data['noOfContacts'] = $noOfContacts; | ||
| 156 | $data['uniqueContacts'] = $uniqueContacts[0]->total; | ||
| 157 | |||
| 158 | return view("layout.module.outputreport.outputreport", $data); | ||
| 159 | // } | ||
| 160 | } | ||
| 161 | if($id == "supervisordata"){ | ||
| 162 | $users=Input::get("user"); | ||
| 163 | |||
| 164 | if($users == ""){ | ||
| 165 | $users = "ALL"; | ||
| 166 | } | ||
| 167 | $supervisor = User::where('supervisor','=',Auth::user()->username)->get(); | ||
| 168 | //if dropdown value is All then use the below foreach othewise just put the user_id in array based on dropdown | ||
| 169 | $usersarray= array(); | ||
| 170 | if($users=="ALL"){ | ||
| 171 | foreach($supervisor as $usersval){ | ||
| 172 | $usersarray[] = $usersval->id; | ||
| 173 | } | ||
| 174 | } else{ | ||
| 175 | $usersarray[] = $users; | ||
| 176 | } | ||
| 177 | $totalIncome = DB::select("select sum(income) as income from output_report where user_id IN (".implode(',',$usersarray).")"); | ||
| 178 | $Contacts = DB::select("Select Count(user_id), Sum(call_attempts) as call_attempts, | ||
| 179 | Sum(call_contacts) as call_contacts, | ||
| 180 | Sum(call_unique_contacts) as call_unique_contacts | ||
| 181 | From (Select Distinct user_id, call_attempts, call_contacts, call_unique_contacts From output_report) a | ||
| 182 | where user_id in (".implode(',',$usersarray).") | ||
| 183 | "); | ||
| 184 | $report = DB::select("SELECT product_id,product_name, SUM(lead_generated) as totallead, SUM(lead_generated_amount) as totalleadamt, SUM(lead_closed) as totalleadclosed, Sum(lead_closed_amount) as leadcloseamt FROM `output_report` where user_id in (".implode(',',$usersarray).") group by product_id"); | ||
| 185 | //print_r($report); | ||
| 186 | $data['supervisor'] = $supervisor; | ||
| 187 | $data['Contacts'] = $Contacts[0]; | ||
| 188 | $data['totalIncome'] = $totalIncome[0]->income; | ||
| 189 | $data['report'] = $report; | ||
| 190 | $data['users'] = $users; | ||
| 191 | |||
| 192 | return view("layout.module.outputreport.supervisorreport", $data); | ||
| 193 | |||
| 194 | } | ||
| 195 | |||
| 196 | return view("layout.module.outputreport.$id",array()); | ||
| 197 | |||
| 198 | } | ||
| 199 | |||
| 200 | /** | ||
| 201 | * Show the form for editing the specified resource. | ||
| 202 | * | ||
| 203 | * @param int $id | ||
| 204 | * @return \Illuminate\Http\Response | ||
| 205 | */ | ||
| 206 | public function edit($id) | ||
| 207 | { | ||
| 208 | // | ||
| 209 | } | ||
| 210 | |||
| 211 | /** | ||
| 212 | * Update the specified resource in storage. | ||
| 213 | * | ||
| 214 | * @param \Illuminate\Http\Request $request | ||
| 215 | * @param int $id | ||
| 216 | * @return \Illuminate\Http\Response | ||
| 217 | */ | ||
| 218 | public function update(Request $request, $id) | ||
| 219 | { | ||
| 220 | // | ||
| 221 | } | ||
| 222 | |||
| 223 | /** | ||
| 224 | * Remove the specified resource from storage. | ||
| 225 | * | ||
| 226 | * @param int $id | ||
| 227 | * @return \Illuminate\Http\Response | ||
| 228 | */ | ||
| 229 | public function destroy($id) | ||
| 230 | { | ||
| 231 | // | ||
| 232 | } | ||
| 233 | } |
| 1 | <?php | ||
| 2 | namespace App\Http\Controllers; | ||
| 3 | use Illuminate\Http\Request; | ||
| 4 | use App\Http\Requests; | ||
| 5 | use App\Models\Pri; | ||
| 6 | use Validator; | ||
| 7 | |||
| 8 | class PriController extends Controller | ||
| 9 | { | ||
| 10 | public function pri(Request $request) | ||
| 11 | { | ||
| 12 | // $ab =escapeshellarg(`ls -al`); | ||
| 13 | // echo "<pre>$ab</pre>"; | ||
| 14 | $output = `ls -al`; | ||
| 15 | echo "<pre>$output</pre>"; | ||
| 16 | } | ||
| 17 | |||
| 18 | } |
| ... | @@ -148,41 +148,6 @@ class RecordController extends Controller { | ... | @@ -148,41 +148,6 @@ class RecordController extends Controller { |
| 148 | return "<script>simpleNotification('error','topRight','Please Get on call first');</script>"; | 148 | return "<script>simpleNotification('error','topRight','Please Get on call first');</script>"; |
| 149 | } | 149 | } |
| 150 | } | 150 | } |
| 151 | if($action=="sendsms") | ||
| 152 | { | ||
| 153 | $wakka = new KHRMSLib(); | ||
| 154 | |||
| 155 | $mobile=Input::get("mobile"); | ||
| 156 | $message=Input::get("message"); | ||
| 157 | $url = 'https://10.2.55.165:443/servlet/com.aclwireless.pushconnectivity.listeners.TextListener?'; | ||
| 158 | $inputArray = ['userId'=>'hdfcbalrt',"pass"=>'hdfcbalrt25',"appid"=>"hdfcbalrt","subappid"=>"hdfcbalrt","contenttype"=>"1","to"=>$mobile,"from"=>"HDFCBK","text"=>$message,"selfid"=>"true","alert"=>"1","dlrreq"=>"true","intflag"=>"false"]; | ||
| 159 | $query = http_build_query($inputArray); | ||
| 160 | $url .= $query; | ||
| 161 | |||
| 162 | //echo $url; | ||
| 163 | // exit; | ||
| 164 | |||
| 165 | try{ | ||
| 166 | $ch = curl_init(); | ||
| 167 | curl_setopt($ch, CURLOPT_URL, $url); | ||
| 168 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); | ||
| 169 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | ||
| 170 | // curl_setopt($ch,CURLOPT_CONNECTTIMEOUT, 5); | ||
| 171 | // curl_setopt($ch,CURLOPT_TIMEOUT, 15); | ||
| 172 | $response = curl_exec($ch); | ||
| 173 | //echo "Kumar"; | ||
| 174 | // var_dump($response); | ||
| 175 | //return "<script>simpleNotification('success','topRight',$response);</script>"; | ||
| 176 | curl_close($ch); | ||
| 177 | return "<script>simpleNotification('success','topRight','Success');</script>"; | ||
| 178 | } catch(Exception $e) { | ||
| 179 | //echo "Manoj"; | ||
| 180 | $errormessage=$e->getMessage(); | ||
| 181 | return "<script>simpleNotification('error','topRight','Failed to Send Message');</script>"; | ||
| 182 | //var_dump($e->getMessage()); | ||
| 183 | } | ||
| 184 | //return "<script>simpleNotification('success','topRight','Message is $mobile');</script>"; | ||
| 185 | } | ||
| 186 | 151 | ||
| 187 | } | 152 | } |
| 188 | public function show($id) | 153 | public function show($id) | ... | ... |
| 1 | <?php | ||
| 2 | namespace App\Http\Controllers; | ||
| 3 | use Illuminate\Http\Request; | ||
| 4 | use App\Http\Requests; | ||
| 5 | use Auth; | ||
| 6 | use Log; | ||
| 7 | use DB; | ||
| 8 | class SmsController extends Controller | ||
| 9 | { | ||
| 10 | public $smsUrl = 'https://10.2.55.165:443/servlet/com.aclwireless.pushconnectivity.listeners.TextListener?'; | ||
| 11 | //public $userarray = array("A21568","admin"); | ||
| 12 | public function sendSmsBasedOnSubDisposition($kstychCall) | ||
| 13 | { | ||
| 14 | $msgText = $this->getSmsTemplate($kstychCall); | ||
| 15 | if( !empty($msgText) ) { | ||
| 16 | $msgText = $this->fillValuesInTemplate($msgText); | ||
| 17 | //Log::info($msgText); | ||
| 18 | $this->sendSmsRequest($kstychCall, $msgText); | ||
| 19 | } | ||
| 20 | //} | ||
| 21 | return; | ||
| 22 | } | ||
| 23 | public function sendSmsRequest($kstychCall, $msgText) | ||
| 24 | { | ||
| 25 | //$wakka = new KHRMSLib(); | ||
| 26 | $url = $this->smsUrl; | ||
| 27 | $inputArray = [ | ||
| 28 | 'userId'=>'hdfcbalrt', | ||
| 29 | "pass"=>'hdfcbalrt25', | ||
| 30 | "appid"=>"hdfcbalrt", | ||
| 31 | "subappid"=>"hdfcbalrt", | ||
| 32 | "contenttype"=>"1", | ||
| 33 | "to"=>$kstychCall['callnumber'], | ||
| 34 | "from"=>"HDFCBK", | ||
| 35 | "text"=>$msgText, | ||
| 36 | "selfid"=>"true", | ||
| 37 | "alert"=>"1", | ||
| 38 | "dlrreq"=>"true", | ||
| 39 | "intflag"=>"false" | ||
| 40 | ]; | ||
| 41 | $query = http_build_query($inputArray); | ||
| 42 | $url .= $query; | ||
| 43 | try{ | ||
| 44 | $ch = curl_init(); | ||
| 45 | curl_setopt($ch, CURLOPT_URL, $url); | ||
| 46 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); | ||
| 47 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | ||
| 48 | curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,3); | ||
| 49 | $response = curl_exec($ch); | ||
| 50 | $number=$kstychCall['callnumber']; | ||
| 51 | $callid=intval($kstychCall['callid'])+0; | ||
| 52 | $crmcall=CRMCall::find($callid); | ||
| 53 | $serverip=env(app_ip); | ||
| 54 | $agentid=Auth::user()->id; | ||
| 55 | $agentname=Auth::user()->fullname; | ||
| 56 | $subdispo=$kstychCall["usersubstatus"]; | ||
| 57 | $clientcode=$kstychCall["clientcode"]; | ||
| 58 | |||
| 59 | DB::insert(DB::raw("insert into sms_log set server_ip='$serverip',call_id='$callid',call_date='$crmcall->created_at',agent_name='$agentname',agent_id='$agentid',subdispo='$subdispo',number='$number',message='$msgText',response='$response',clientcode='$clientcode'")); | ||
| 60 | Log::useFiles(storage_path().'/logs/SMS_Messages'.date("Y-m-d").'.log'); | ||
| 61 | Log::info("|".date('Y-m-d H:i:s', strtotime('+5 hours 30 minutes'))."|".Auth::user()->fullname."|".$kstychCall['callnumber']."|".$msgText."|".$response); | ||
| 62 | //Log::info($response); | ||
| 63 | curl_close($ch); | ||
| 64 | } catch(Exception $e) { | ||
| 65 | Log::info($e->getMessage()); | ||
| 66 | } | ||
| 67 | } | ||
| 68 | public function getSmsTemplate($kstychCall) | ||
| 69 | { | ||
| 70 | $msgText = ""; | ||
| 71 | include( app_path() . '/Constants/SmsTemplate.php'); | ||
| 72 | if( in_array( $kstychCall["usersubstatus"] , $smsContactedSubdispositionsArr) ) { | ||
| 73 | $msgText = $smsTemplatesArr[SMS_THANKYOU]; | ||
| 74 | } else if( in_array( $kstychCall["usersubstatus"] , $smsNotContactedSubdispositionsArr) ) { | ||
| 75 | $msgText = $smsTemplatesArr[SMS_NOTCONTACTED]; | ||
| 76 | } | ||
| 77 | return $msgText; | ||
| 78 | } | ||
| 79 | public function fillValuesInTemplate($msgText) | ||
| 80 | { | ||
| 81 | if( !empty($msgText) ) | ||
| 82 | { | ||
| 83 | $msgText = str_replace("#name#", Auth::user()->fullname, $msgText); | ||
| 84 | //$msgText = str_replace("#number#", explode(":", Auth::user()->exten)[0], $msgText); | ||
| 85 | $exten = ''; | ||
| 86 | $extension = Auth::user()->exten; | ||
| 87 | if(!empty($extension)) | ||
| 88 | { | ||
| 89 | $extenArr = explode(":", $extension); | ||
| 90 | $exten = $extenArr[0]; | ||
| 91 | } | ||
| 92 | //Log::info($exten); | ||
| 93 | |||
| 94 | $msgText = str_replace("#number#", $exten, $msgText); | ||
| 95 | $msgText = str_replace("#date#", date('d-m-Y'), $msgText); | ||
| 96 | } | ||
| 97 | return $msgText; | ||
| 98 | } | ||
| 99 | } |
| ... | @@ -252,7 +252,7 @@ class UserController extends Controller { | ... | @@ -252,7 +252,7 @@ class UserController extends Controller { |
| 252 | if(isset($userdata["usergroup"]))$user->group=$userdata["usergroup"]; | 252 | if(isset($userdata["usergroup"]))$user->group=$userdata["usergroup"]; |
| 253 | 253 | ||
| 254 | $user->presence=0; | 254 | $user->presence=0; |
| 255 | 255 | if(isset($userdata["clientsownerlist"]))$user->clients=$userdata["clientsownerlist"]; | |
| 256 | if(isset($userdata["lteam"]))$user->lteam=$userdata["lteam"]; | 256 | if(isset($userdata["lteam"]))$user->lteam=$userdata["lteam"]; |
| 257 | if(isset($userdata["lteam2"]))$user->lteam2=$userdata["lteam2"]; | 257 | if(isset($userdata["lteam2"]))$user->lteam2=$userdata["lteam2"]; |
| 258 | if(isset($userdata["supervisor"]))$user->supervisor=$userdata["supervisor"]; | 258 | if(isset($userdata["supervisor"]))$user->supervisor=$userdata["supervisor"]; |
| ... | @@ -290,7 +290,7 @@ class UserController extends Controller { | ... | @@ -290,7 +290,7 @@ class UserController extends Controller { |
| 290 | if(isset($userdata["recclientsownerlist"]))$bbb['recclientsownerlist']=$userdata["recclientsownerlist"]; | 290 | if(isset($userdata["recclientsownerlist"]))$bbb['recclientsownerlist']=$userdata["recclientsownerlist"]; |
| 291 | if(isset($userdata["bdmclientsownerlist"]))$bbb['bdmclientsownerlist']=$userdata["bdmclientsownerlist"]; | 291 | if(isset($userdata["bdmclientsownerlist"]))$bbb['bdmclientsownerlist']=$userdata["bdmclientsownerlist"]; |
| 292 | $data['hrmsdata']=serialize($bbb); | 292 | $data['hrmsdata']=serialize($bbb); |
| 293 | 293 | //$user->clients=$userdata["clientsownerlist"]; | |
| 294 | $user->data=json_encode($data); | 294 | $user->data=json_encode($data); |
| 295 | 295 | ||
| 296 | $meta=$user->meta(); | 296 | $meta=$user->meta(); | ... | ... |
This diff is collapsed.
Click to expand it.
application/app/Http/routes-2002.php
0 → 100644
| 1 | <?php | ||
| 2 | |||
| 3 | Route::get('/', array('uses'=> 'HomeController@index', 'as'=>'index.root')); | ||
| 4 | Route::get('index', array('uses'=> 'HomeController@index', 'as'=>'index.index')); | ||
| 5 | |||
| 6 | Route::get('test_table_8', 'Rom8Controller@testTable'); | ||
| 7 | Route::get('eg', 'egController@eg'); | ||
| 8 | |||
| 9 | Route::group(['middleware' => ['web']], function () { | ||
| 10 | |||
| 11 | Route::get('home', array('uses' => 'HomeController@home', 'as'=>'home.home')); | ||
| 12 | Route::get('login', array('uses'=> 'HomeController@login', 'as'=>'home.login')); | ||
| 13 | Route::post('login', array('uses'=> 'HomeController@do_login', 'as'=>'home.do_login')); | ||
| 14 | Route::get('logout', array('uses'=> 'HomeController@logout', 'as'=>'home.logout')); | ||
| 15 | Route::get('signup', array('uses'=> 'HomeController@signup', 'as'=>'home.signup')); | ||
| 16 | Route::post('signup', array('uses'=> 'HomeController@do_signup', 'as'=>'home.do_signup')); | ||
| 17 | |||
| 18 | Route::get('userfiles/{path}',array('uses'=>'HomeController@userfiles','as'=>'userfiles.get'))->where('path', '.*'); | ||
| 19 | |||
| 20 | Route::get('unsubscribe', array('uses'=> 'HomeController@unsubscribe', 'as'=>'home.unsubscribe')); | ||
| 21 | Route::any('forgotpassword', array('uses'=> 'HomeController@forgotpassword', 'as'=>'signup.forgotpassword')); | ||
| 22 | |||
| 23 | Route::get('profile', array('before' => 'auth','uses' => 'HomeController@profile', 'as'=>'profile.index')); | ||
| 24 | Route::post('profile', array('before' => 'auth','uses' => 'HomeController@do_profile', 'as'=>'profile.update')); | ||
| 25 | |||
| 26 | Route::get('msie', array('uses'=> 'HomeController@msie', 'as'=>'login.msie')); | ||
| 27 | Route::any('ajaxerror', array('uses'=> 'HomeController@ajaxerror', 'as'=>'home.ajaxerror')); | ||
| 28 | Route::any('gettoken', array('uses'=> 'HomeController@gettoken', 'as'=>'home.gettoken')); | ||
| 29 | Route::any('idleapp', array('uses'=> 'HomeController@idleapp', 'as'=>'home.idleapp')); | ||
| 30 | |||
| 31 | Route::any('fileupload', array('uses'=> 'HomeController@fileupload', 'as'=>'upload.file')); | ||
| 32 | Route::get('cron', array('uses'=> 'HomeController@cron', 'as'=>'cron.cron')); | ||
| 33 | Route::get('style', array('uses'=> 'HomeController@style', 'as'=>'style.index')); | ||
| 34 | Route::get('jshead', array('uses'=> 'HomeController@jshead', 'as'=>'jshead.index')); | ||
| 35 | Route::get('jsbody', array('uses'=> 'HomeController@jsbody', 'as'=>'jsbody.index')); | ||
| 36 | |||
| 37 | Route::resource('dashboard','DashboardController'); | ||
| 38 | Route::resource('notification','NotificationController'); | ||
| 39 | Route::resource('message','MessageController'); | ||
| 40 | Route::resource('task','TaskController'); | ||
| 41 | Route::resource('user','UserController'); | ||
| 42 | Route::resource('group','GroupController'); | ||
| 43 | Route::resource('role','RoleController'); | ||
| 44 | |||
| 45 | Route::resource('master','MasterController'); | ||
| 46 | Route::resource('admin','AdminController'); | ||
| 47 | Route::resource('record','RecordController'); | ||
| 48 | Route::resource('campaign','CampaignController'); | ||
| 49 | |||
| 50 | Route::resource('dialer','DialerController'); | ||
| 51 | Route::resource('hr','HRController'); | ||
| 52 | Route::resource('social','SocialController'); | ||
| 53 | Route::resource('web','WebController'); | ||
| 54 | |||
| 55 | Route::get('notes', array('uses' => 'NotesController@loadQuestions', 'as'=>'questionare.load_questions')); | ||
| 56 | Route::post('notes',array('uses' => 'NotesController@store', 'as'=>'notes.store')); | ||
| 57 | |||
| 58 | Route::get('questionare/{qid?}/{optid?}/{level?}', array('uses' => 'QuestionareController@loadQuestions', 'as'=>'questionare.load_questions')); | ||
| 59 | Route::post('questionare', array('uses' => 'QuestionareController@saveQuestionAire', 'as'=>'questionare.save')); | ||
| 60 | //Route::get('notes', array('uses' => 'NotesController@index', 'as'=>'notes.index')); | ||
| 61 | //Route::resource('notesupdate','NotesController'); | ||
| 62 | |||
| 63 | Route::get('exceldownload', function() | ||
| 64 | { | ||
| 65 | return view("layout.module.userupload.exceldata"); | ||
| 66 | }); | ||
| 67 | |||
| 68 | Route::post('useruploaddata', array('uses' => 'UserController@userUpload', 'as'=>'useruploaddata')); | ||
| 69 | |||
| 70 | //Supervisor Call Mangement - By Manish on 16-02-17 | ||
| 71 | Route::get('SupervisorModule', array('uses'=> 'RecordController@supervisorUpload', 'as'=>'upload.comments')); | ||
| 72 | |||
| 73 | //Supervisor Call Mangement - By Manish on 22-03-17 | ||
| 74 | Route::post('complaint', array('uses'=> 'ComplaintController@saveComplaint', 'as'=>'upload.complaint')); | ||
| 75 | Route::post('resclassUnit', array('uses'=> 'ComplaintController@getBranchName', 'as'=>'get.branchname')); | ||
| 76 | Route::post('childcase', array('uses'=> 'ComplaintController@saveChildCase', 'as'=>'upload.case')); | ||
| 77 | |||
| 78 | //Supervisor Message Announcement - By Manish on 12-04-17 | ||
| 79 | Route::get('category/{resClassUnit}', array('uses'=> 'ComplaintController@getCat', 'as'=>'get.cat')); | ||
| 80 | Route::get('subcategory/{catId}/{resClassUnit}', array('uses'=> 'ComplaintController@getSubCat', 'as'=>'get.subcat')); | ||
| 81 | |||
| 82 | Route::post('SupervisorMessage', array('uses'=> 'MessageController@sendSupVisorMessage', 'as'=>'send.message')); | ||
| 83 | Route::get('supmessage/{msg_id?}/{username?}', array('uses'=> 'MessageController@viewSupVisorMessage', 'as'=>'view.allmessage')); | ||
| 84 | Route::get('viewmessage/{msg_id?}/{username?}', array('uses'=> 'MessageController@viewMessage', 'as'=>'view.message')); | ||
| 85 | |||
| 86 | //Addition of Customer Racing | ||
| 87 | Route::post('custrace', array('uses'=> 'RacingCustomerController@saveRacingCustomer', 'as'=>'upload.raccust')); | ||
| 88 | |||
| 89 | //Addition of Lead Entry Form | ||
| 90 | Route::post('leadentryform', array('uses'=> 'LeadEntryFormController@saveLeadEntryFormDetails', 'as'=>'upload.rleadform')); | ||
| 91 | Route::post('oaentryform', array('uses'=> 'OneAssistController@saveOneAssistFormDetails', 'as'=>'upload.oaleadform')); | ||
| 92 | |||
| 93 | Route::post('racingcustupdate',array('uses'=> 'RacingCustomerController@updateracingcust', 'as'=>'upload.updateraccust')); | ||
| 94 | Route::get('dialmode', array('uses'=> 'DialModeController@dialmodeview', 'as'=>'view.module')); | ||
| 95 | Route::post('dialmodeassign', array('uses'=> 'DialModeController@dialmodeassign', 'as'=>'assign.dialmodes')); | ||
| 96 | ///for the rlp pbwise | ||
| 97 | Route::get('rlp', array('uses'=> 'RecordController@rlpPbwise', 'as'=>'rlppb.comments')); | ||
| 98 | |||
| 99 | }); |
| ... | @@ -41,6 +41,8 @@ Route::group(['middleware' => ['web']], function () { | ... | @@ -41,6 +41,8 @@ Route::group(['middleware' => ['web']], function () { |
| 41 | Route::resource('user','UserController'); | 41 | Route::resource('user','UserController'); |
| 42 | Route::resource('group','GroupController'); | 42 | Route::resource('group','GroupController'); |
| 43 | Route::resource('role','RoleController'); | 43 | Route::resource('role','RoleController'); |
| 44 | Route::resource('dispositionPlan','DispositionPlanController'); | ||
| 45 | Route::resource('disposition','DispositionController'); | ||
| 44 | 46 | ||
| 45 | Route::resource('master','MasterController'); | 47 | Route::resource('master','MasterController'); |
| 46 | Route::resource('admin','AdminController'); | 48 | Route::resource('admin','AdminController'); |
| ... | @@ -51,8 +53,6 @@ Route::group(['middleware' => ['web']], function () { | ... | @@ -51,8 +53,6 @@ Route::group(['middleware' => ['web']], function () { |
| 51 | Route::resource('hr','HRController'); | 53 | Route::resource('hr','HRController'); |
| 52 | Route::resource('social','SocialController'); | 54 | Route::resource('social','SocialController'); |
| 53 | Route::resource('web','WebController'); | 55 | Route::resource('web','WebController'); |
| 54 | Route::resource('virtualchannel','VirtualController'); | ||
| 55 | Route::resource('outputreport','OutputReportController'); | ||
| 56 | 56 | ||
| 57 | Route::get('notes', array('uses' => 'NotesController@loadQuestions', 'as'=>'questionare.load_questions')); | 57 | Route::get('notes', array('uses' => 'NotesController@loadQuestions', 'as'=>'questionare.load_questions')); |
| 58 | Route::post('notes',array('uses' => 'NotesController@store', 'as'=>'notes.store')); | 58 | Route::post('notes',array('uses' => 'NotesController@store', 'as'=>'notes.store')); |
| ... | @@ -97,4 +97,5 @@ Route::group(['middleware' => ['web']], function () { | ... | @@ -97,4 +97,5 @@ Route::group(['middleware' => ['web']], function () { |
| 97 | Route::post('dialmodeassign', array('uses'=> 'DialModeController@dialmodeassign', 'as'=>'assign.dialmodes')); | 97 | Route::post('dialmodeassign', array('uses'=> 'DialModeController@dialmodeassign', 'as'=>'assign.dialmodes')); |
| 98 | ///for the rlp pbwise | 98 | ///for the rlp pbwise |
| 99 | Route::get('rlp', array('uses'=> 'RecordController@rlpPbwise', 'as'=>'rlppb.comments')); | 99 | Route::get('rlp', array('uses'=> 'RecordController@rlpPbwise', 'as'=>'rlppb.comments')); |
| 100 | |||
| 100 | }); | 101 | }); | ... | ... |
This diff could not be displayed because it is too large.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/app/Jobs/KPAMIListen2.php
0 → 100644
This diff is collapsed.
Click to expand it.
application/app/Models/Disposition.php
0 → 100644
application/app/Models/DispositionPlan.php
0 → 100644
| 1 | <?php namespace App\Models; | 1 | <?php namespace App\Models; |
| 2 | use Illuminate\Database\Eloquent\Model; | 2 | use Illuminate\Database\Eloquent\Model; |
| 3 | use Log; | 3 | |
| 4 | 4 | ||
| 5 | class Kqueue extends Model{ | 5 | class Kqueue extends Model{ |
| 6 | 6 | ||
| ... | @@ -74,7 +74,6 @@ class Kqueue extends Model{ | ... | @@ -74,7 +74,6 @@ class Kqueue extends Model{ |
| 74 | $dialstr = $dialline->dialstr; | 74 | $dialstr = $dialline->dialstr; |
| 75 | $server = $dialline->server; | 75 | $server = $dialline->server; |
| 76 | $channel = $dialline->channel; | 76 | $channel = $dialline->channel; |
| 77 | |||
| 78 | if($server != '') | 77 | if($server != '') |
| 79 | { | 78 | { |
| 80 | $odata=array();$odata['VARS']=array(); | 79 | $odata=array();$odata['VARS']=array(); |
| ... | @@ -86,13 +85,10 @@ class Kqueue extends Model{ | ... | @@ -86,13 +85,10 @@ class Kqueue extends Model{ |
| 86 | $odata['VARS']['dialstr']=$dialstr; | 85 | $odata['VARS']['dialstr']=$dialstr; |
| 87 | $odata['VARS']['chnl']=$channel; | 86 | $odata['VARS']['chnl']=$channel; |
| 88 | $odata['VARS']['callnumber']=$callnumber;*/ | 87 | $odata['VARS']['callnumber']=$callnumber;*/ |
| 89 | |||
| 90 | $odata['channel']=$channel; | 88 | $odata['channel']=$channel; |
| 91 | $odata['exten']="1003".$callnumber; | 89 | $odata['exten']="1003".$callnumber; |
| 92 | $odata['context']="initiateTransfer"; | 90 | $odata['context']="initiateTransfer"; |
| 93 | $odata['priority']=1; | 91 | $odata['priority']=1; |
| 94 | |||
| 95 | |||
| 96 | //originate conf | 92 | //originate conf |
| 97 | $this->type="SIP_".$server; | 93 | $this->type="SIP_".$server; |
| 98 | $this->key="transfer"; | 94 | $this->key="transfer"; |
| ... | @@ -254,24 +250,6 @@ class Kqueue extends Model{ | ... | @@ -254,24 +250,6 @@ class Kqueue extends Model{ |
| 254 | $this->data=json_encode($odata); | 250 | $this->data=json_encode($odata); |
| 255 | $this->save(); | 251 | $this->save(); |
| 256 | } | 252 | } |
| 257 | |||
| 258 | public function playnonworkingfile($fromext,$server) | ||
| 259 | { | ||
| 260 | $odata=array();$odata['VARS']=array(); | ||
| 261 | $odata['fromext']=$fromext; | ||
| 262 | $odata['context']="kstychPlayNonWorkingFile"; | ||
| 263 | $odata['callerid']=""; | ||
| 264 | $odata['toext']="2001"; | ||
| 265 | $odata['account']=""; | ||
| 266 | |||
| 267 | //originate conf | ||
| 268 | $this->type="SIP_".$server; | ||
| 269 | $this->key="Redirect"; | ||
| 270 | $this->status="New"; | ||
| 271 | $this->data=json_encode($odata); | ||
| 272 | $this->save(); | ||
| 273 | } | ||
| 274 | |||
| 275 | public function playbusyfile($fromext,$server) | 253 | public function playbusyfile($fromext,$server) |
| 276 | { | 254 | { |
| 277 | $odata=array();$odata['VARS']=array(); | 255 | $odata=array();$odata['VARS']=array(); |
| ... | @@ -304,11 +282,11 @@ class Kqueue extends Model{ | ... | @@ -304,11 +282,11 @@ class Kqueue extends Model{ |
| 304 | $this->data=json_encode($odata); | 282 | $this->data=json_encode($odata); |
| 305 | $this->save(); | 283 | $this->save(); |
| 306 | } | 284 | } |
| 307 | public function playafterhrsfile($fromext,$server) | 285 | public function playhangupfile($fromext,$server) |
| 308 | { | 286 | { |
| 309 | $odata=array();$odata['VARS']=array(); | 287 | $odata=array();$odata['VARS']=array(); |
| 310 | $odata['fromext']=$fromext; | 288 | $odata['fromext']=$fromext; |
| 311 | $odata['context']="kstychAfterFile"; | 289 | $odata['context']="kstychPlayHangFile"; |
| 312 | $odata['callerid']=""; | 290 | $odata['callerid']=""; |
| 313 | $odata['toext']="3001"; | 291 | $odata['toext']="3001"; |
| 314 | $odata['account']=""; | 292 | $odata['account']=""; | ... | ... |
| 1 | <?php | ||
| 2 | |||
| 3 | namespace App\Models; | ||
| 4 | use Illuminate\Database\Eloquent\Model; | ||
| 5 | |||
| 6 | class OutputReport extends Model{ | ||
| 7 | |||
| 8 | protected $table = 'output_report'; | ||
| 9 | |||
| 10 | protected $fillable = ['user_id', 'user_name', 'date', 'call_attempts', 'call_contacts', 'call_unique_contacts', 'income', 'product_id' , 'product_name', 'lead_generated', 'lead_generated_amount', 'lead_closed', 'lead_closed_amount', 'created_at', 'updated_at']; | ||
| 11 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
application/app/Models/SubDisposition.php
0 → 100644
| ... | @@ -17,6 +17,7 @@ return [ | ... | @@ -17,6 +17,7 @@ return [ |
| 17 | 17 | ||
| 18 | 'log_max_files' => 30, | 18 | 'log_max_files' => 30, |
| 19 | 19 | ||
| 20 | |||
| 20 | 'providers' => [ | 21 | 'providers' => [ |
| 21 | 22 | ||
| 22 | Illuminate\Auth\AuthServiceProvider::class, | 23 | Illuminate\Auth\AuthServiceProvider::class, |
| ... | @@ -98,8 +99,6 @@ return [ | ... | @@ -98,8 +99,6 @@ return [ |
| 98 | "Dialer" => ["disp"=>"Dialer","icon"=>"phone","dash"=>"Dialer", | 99 | "Dialer" => ["disp"=>"Dialer","icon"=>"phone","dash"=>"Dialer", |
| 99 | "submenu"=>["Dialer"=>["kDialerModel();"], | 100 | "submenu"=>["Dialer"=>["kDialerModel();"], |
| 100 | "Reports"=>["menuAction('dialer/reports');"], | 101 | "Reports"=>["menuAction('dialer/reports');"], |
| 101 | "Output Report"=>["menuAction('outputreport/reportdata');"], | ||
| 102 | "Supervisor Output Report"=>["menuAction('outputreport/supervisordata');"], | ||
| 103 | ]], | 102 | ]], |
| 104 | "DialerCampaign" => ["disp"=>"Dialer","icon"=>"phone","dash"=>"", | 103 | "DialerCampaign" => ["disp"=>"Dialer","icon"=>"phone","dash"=>"", |
| 105 | "submenu"=>[ | 104 | "submenu"=>[ |
| ... | @@ -112,15 +111,17 @@ return [ | ... | @@ -112,15 +111,17 @@ return [ |
| 112 | "RecordingQC"=>["menuAction('dialer/recqc');","A"], | 111 | "RecordingQC"=>["menuAction('dialer/recqc');","A"], |
| 113 | "RecordingArchive"=>["menuAction('dialer/recarchive');","A"], | 112 | "RecordingArchive"=>["menuAction('dialer/recarchive');","A"], |
| 114 | ]], | 113 | ]], |
| 115 | 114 | "Campaign" => ["disp"=>"Campaign Management","icon"=>"file","dash"=>"", | |
| 116 | "Campaign" => ["disp"=>"Campaign","icon"=>"file","dash"=>"","onclick"=>"menuAction('campaign');"], | 115 | "submenu"=>["Campaign Management"=>["menuAction('campaign');"], |
| 117 | 116 | "Bulk Upload"=>["menuAction('campaign/bulkupload');"], | |
| 118 | 117 | ]], | |
| 118 | "dispositionPlan" => ["disp"=>"Disposition Plan","icon"=>"globe","dash"=>"","onclick"=>"menuAction('dispositionPlan');"], | ||
| 119 | "disposition" => ["disp"=>"Disposition List","icon"=>"globe","dash"=>"","onclick"=>"menuAction('disposition');"], | ||
| 119 | "Admin" => ["disp"=>"Admin","icon"=>"gear","dash"=>"", | 120 | "Admin" => ["disp"=>"Admin","icon"=>"gear","dash"=>"", |
| 120 | "submenu"=>["Masters"=>["showBlock('Masters');"], | 121 | "submenu"=>["Masters"=>["showBlock('Masters');"], |
| 121 | "Delete Record"=>["showBlock('DeletePerson');"], | 122 | "Delete Record"=>["showBlock('DeletePerson');"], |
| 122 | "Access Log"=>["menuAction('admin/accesslog');"], | 123 | "Access Log"=>["menuAction('admin/accesslog');"], |
| 123 | "DialerReports"=>["menuAction('dialer/areports');"], | 124 | //"DialerReports"=>["menuAction('dialer/areports');"], |
| 124 | ]], | 125 | ]], |
| 125 | "Notification"=> ["disp"=>"Notification","icon"=>"home","dash"=>"","onclick"=>""], | 126 | "Notification"=> ["disp"=>"Notification","icon"=>"home","dash"=>"","onclick"=>""], |
| 126 | "Message" => ["disp"=>"Message","icon"=>"home","dash"=>"","onclick"=>""], | 127 | "Message" => ["disp"=>"Message","icon"=>"home","dash"=>"","onclick"=>""], |
| ... | @@ -128,7 +129,6 @@ return [ | ... | @@ -128,7 +129,6 @@ return [ |
| 128 | "Record" => ["disp"=>"Record","icon"=>"file","dash"=>"","onclick"=>""], | 129 | "Record" => ["disp"=>"Record","icon"=>"file","dash"=>"","onclick"=>""], |
| 129 | "User" => ["disp"=>"User","icon"=>"home","dash"=>"","onclick"=>""], | 130 | "User" => ["disp"=>"User","icon"=>"home","dash"=>"","onclick"=>""], |
| 130 | "Role" => ["disp"=>"Role","icon"=>"home","dash"=>"","onclick"=>""], | 131 | "Role" => ["disp"=>"Role","icon"=>"home","dash"=>"","onclick"=>""], |
| 131 | "Reports" => ["disp"=>"Report","icon"=>"home","dash"=>"","onclick"=>""], | ||
| 132 | "DialMode" => ["disp"=>"DialMode","icon"=>"home","dash"=>"","onclick"=>""], | 132 | "DialMode" => ["disp"=>"DialMode","icon"=>"home","dash"=>"","onclick"=>""], |
| 133 | "SupervisorModule" => ["disp"=>"SupervisorModule","icon"=>"globe","dash"=>"","onclick"=>"menuAction('SupervisorModule');"], | 133 | "SupervisorModule" => ["disp"=>"SupervisorModule","icon"=>"globe","dash"=>"","onclick"=>"menuAction('SupervisorModule');"], |
| 134 | "Notes" => ["disp"=>"Notes","icon"=>"globe","dash"=>"","onclick"=>"menuAction('notes');"], | 134 | "Notes" => ["disp"=>"Notes","icon"=>"globe","dash"=>"","onclick"=>"menuAction('notes');"], |
| ... | @@ -154,7 +154,7 @@ return [ | ... | @@ -154,7 +154,7 @@ return [ |
| 154 | 'sipssldomain' => env('app_sipssldomain',env('app_domain','localhost')), | 154 | 'sipssldomain' => env('app_sipssldomain',env('app_domain','localhost')), |
| 155 | 'webdomain' => env('web_domain',env('app_domain','localhost')), | 155 | 'webdomain' => env('web_domain',env('app_domain','localhost')), |
| 156 | 'email' => env("app_emailid","[email protected]"), | 156 | 'email' => env("app_emailid","[email protected]"), |
| 157 | 'app_version' => "4.2.12", | 157 | 'app_version' => "4.2.14", |
| 158 | 'mytheme' => 'layout', | 158 | 'mytheme' => 'layout', |
| 159 | 'app_admin' => env('app_admin', 'admin'), | 159 | 'app_admin' => env('app_admin', 'admin'), |
| 160 | 'app_support_ids' => [1], | 160 | 'app_support_ids' => [1], | ... | ... |
| ... | @@ -323,7 +323,7 @@ function dailyTasks | ... | @@ -323,7 +323,7 @@ function dailyTasks |
| 323 | if [ $nowtime -eq "000" ] | 323 | if [ $nowtime -eq "000" ] |
| 324 | then | 324 | then |
| 325 | 325 | ||
| 326 | rm -f $app_path/application/storage/logs/laravel-*.log | 326 | ##rm -f $app_path/application/storage/logs/laravel-*.log |
| 327 | touch $app_path/application/storage/logs/laravel-$(date +%Y-%m-%d).log | 327 | touch $app_path/application/storage/logs/laravel-$(date +%Y-%m-%d).log |
| 328 | chmod -R 777 $app_path/application/storage | 328 | chmod -R 777 $app_path/application/storage |
| 329 | chmod -R 777 $app_path/custom/app | 329 | chmod -R 777 $app_path/custom/app | ... | ... |
application/hangup_beep.gsm
deleted
100644 → 0
No preview for this file type
application/hangup_beep.mp3
deleted
100644 → 0
No preview for this file type
application/hangup_beep.wav
deleted
100644 → 0
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
| ... | @@ -12,7 +12,7 @@ astlogdir => /var/log/asterisk | ... | @@ -12,7 +12,7 @@ astlogdir => /var/log/asterisk |
| 12 | astsbindir => /usr/sbin | 12 | astsbindir => /usr/sbin |
| 13 | 13 | ||
| 14 | [options] | 14 | [options] |
| 15 | ;verbose = 3 | 15 | verbose = 9 |
| 16 | ;debug = 3 | 16 | ;debug = 3 |
| 17 | ;alwaysfork = yes ; Same as -F at startup. | 17 | ;alwaysfork = yes ; Same as -F at startup. |
| 18 | ;nofork = yes ; Same as -f at startup. | 18 | ;nofork = yes ; Same as -f at startup. | ... | ... |
application/public/assets/extras/data/asterisk/extensions.conf
100644 → 100755
| ... | @@ -35,14 +35,11 @@ exten => _1001XXX!,1,Dial(SIP/${EXTEN:4}) | ... | @@ -35,14 +35,11 @@ exten => _1001XXX!,1,Dial(SIP/${EXTEN:4}) |
| 35 | exten => _1001XXX!,n,Hangup | 35 | exten => _1001XXX!,n,Hangup |
| 36 | 36 | ||
| 37 | exten => _1002XXX!,1,MixMonitor(/var/spool/asterisk/astrec/${STRFTIME(${EPOCH},,%Y/%m/%d)}/out/outbound_${STRFTIME(${EPOCH},Asia/Kolkata,%Y%m%d-%H%M%S)}_${CALLERID(num)}_${EXTEN:4}_${UNIQUEID}.gsm,av(0)V(0)) | 37 | exten => _1002XXX!,1,MixMonitor(/var/spool/asterisk/astrec/${STRFTIME(${EPOCH},,%Y/%m/%d)}/out/outbound_${STRFTIME(${EPOCH},Asia/Kolkata,%Y%m%d-%H%M%S)}_${CALLERID(num)}_${EXTEN:4}_${UNIQUEID}.gsm,av(0)V(0)) |
| 38 | ;exten => _1002XXX!,2,Dial(${dialstr}${EXTEN:4},55,tTo) | 38 | exten => _1002XXX!,2,Dial(${dialstr}0${EXTEN:4},55,tTo) |
| 39 | exten => _1002XXX!,2,Dial(${dialstr}${EXTEN:4},55,tTo) | ||
| 40 | exten => _1002XXX!,3,Verbose(${dialstr}) | ||
| 41 | exten => _1002XXX!,n,Hangup | 39 | exten => _1002XXX!,n,Hangup |
| 42 | 40 | ||
| 43 | [kstychDialerINB] | 41 | [kstychDialerINB] |
| 44 | exten => _X!,1,Answer | 42 | exten => _X!,1,Answer |
| 45 | exten => _X!,n,Verbose(${CALLERID(num)}${dialstr}${chnl}) | ||
| 46 | exten => _X!,n,Set(CONFBRIDGE(user,music_on_hold_when_empty)=yes) | 43 | exten => _X!,n,Set(CONFBRIDGE(user,music_on_hold_when_empty)=yes) |
| 47 | exten => _X!,n,MixMonitor(/var/spool/asterisk/astrec/${STRFTIME(${EPOCH},,%Y/%m/%d)}/inb/inbound_${STRFTIME(${EPOCH},Asia/Kolkata,%Y%m%d-%H%M%S)}_${CALLERID(num)}_${EXTEN}_${UNIQUEID}.gsm,av(0)V(0)) | 44 | exten => _X!,n,MixMonitor(/var/spool/asterisk/astrec/${STRFTIME(${EPOCH},,%Y/%m/%d)}/inb/inbound_${STRFTIME(${EPOCH},Asia/Kolkata,%Y%m%d-%H%M%S)}_${CALLERID(num)}_${EXTEN}_${UNIQUEID}.gsm,av(0)V(0)) |
| 48 | exten => _X!,n,ConfBridge(${CHANNEL}) | 45 | exten => _X!,n,ConfBridge(${CHANNEL}) |
| ... | @@ -52,12 +49,6 @@ exten => _X!,n,Hangup | ... | @@ -52,12 +49,6 @@ exten => _X!,n,Hangup |
| 52 | exten => _1003XXXXXXXXXX!,1,Dial(SIP/GATEWAY/${EXTEN:4},30,tT) | 49 | exten => _1003XXXXXXXXXX!,1,Dial(SIP/GATEWAY/${EXTEN:4},30,tT) |
| 53 | exten => _1003XXXXXXXXXX!,n,Hangup | 50 | exten => _1003XXXXXXXXXX!,n,Hangup |
| 54 | 51 | ||
| 55 | ;exten => _X!,1,Answer | ||
| 56 | ;exten => _X!,n,Verbose(${CALLERID(num)}${dialstr}${chnl}) | ||
| 57 | ;exten => _X!,n,MixMonitor(/var/spool/asterisk/astrec/${STRFTIME(${EPOCH},,%Y/%m/%d)}/inb/inbound_${STRFTIME(${EPOCH},Asia/Kolkata,%Y%m%d-%H%M%S)}_${CALLERID(num)}_${EXTEN}_${UNIQUEID}.gsm,av(0)V(0)) | ||
| 58 | ;exten => _X!,n,ConfBridge(${chnl}) | ||
| 59 | ;exten => _X!,n,Hangup | ||
| 60 | |||
| 61 | [confTransfer] | 52 | [confTransfer] |
| 62 | exten => _1004XXX!,1,ConfBridge(${CHANNEL}) | 53 | exten => _1004XXX!,1,ConfBridge(${CHANNEL}) |
| 63 | exten => _1004XXX!,n,Hangup | 54 | exten => _1004XXX!,n,Hangup |
| ... | @@ -65,21 +56,14 @@ exten => _1004XXX!,n,Hangup | ... | @@ -65,21 +56,14 @@ exten => _1004XXX!,n,Hangup |
| 65 | [kstychPlayFile] | 56 | [kstychPlayFile] |
| 66 | exten => 1001,1,Answer | 57 | exten => 1001,1,Answer |
| 67 | exten => 1001,n,Playback(silence/1) | 58 | exten => 1001,n,Playback(silence/1) |
| 68 | exten => 1001,n,Playback(/var/lib/asterisk/sounds/audio_busy_rm_V2) | 59 | exten => 1001,n,Playback(/var/lib/asterisk/sounds/RM_not_available_unreachabl) |
| 69 | exten => 1001,n,Hangup | 60 | exten => 1001,n,Hangup |
| 70 | 61 | ||
| 71 | ;[kstychPlayHangFile] | 62 | ;[kstychAbsFile] |
| 72 | ;exten => 3001,1,Answer | 63 | ;exten => 2001,1,Answer |
| 73 | ;exten => 3001,n,Playback(silence/1) | 64 | ;exten => 2001,n,Playback(silence/1) |
| 74 | ;exten => 3001,n,Playback(/var/lib/asterisk/sounds/hangup_beep) | 65 | ;exten => 2001,n,Playback(/var/lib/asterisk/sounds/RM_not_available_unreachabl) |
| 75 | ;exten => 3001,n,Hangup | 66 | ;exten => 2001,n,Hangup |
| 76 | |||
| 77 | |||
| 78 | [kstychAbsFile] | ||
| 79 | exten => 2001,1,Answer | ||
| 80 | exten => 2001,n,Playback(silence/1) | ||
| 81 | exten => 2001,n,Playback(/var/lib/asterisk/sounds/audio_working_hours_vrm_V2) | ||
| 82 | exten => 2001,n,Hangup | ||
| 83 | 67 | ||
| 84 | [SIPDialerINB] | 68 | [SIPDialerINB] |
| 85 | exten => _X!,1,Goto(kstychDialerINB,${EXTEN},1) | 69 | exten => _X!,1,Goto(kstychDialerINB,${EXTEN},1) | ... | ... |
| ... | @@ -6,7 +6,7 @@ tcpenable=no ; Enable server for incoming TCP connections (de | ... | @@ -6,7 +6,7 @@ tcpenable=no ; Enable server for incoming TCP connections (de |
| 6 | tcpbindaddr=0.0.0.0 ; IP address for TCP server to bind to (0.0.0.0 binds to all interfaces) | 6 | tcpbindaddr=0.0.0.0 ; IP address for TCP server to bind to (0.0.0.0 binds to all interfaces) |
| 7 | transport=udp,ws,wss ; Set the default transports. The order determines the primary default transport. | 7 | transport=udp,ws,wss ; Set the default transports. The order determines the primary default transport. |
| 8 | srvlookup=yes ; Enable DNS SRV lookups on outbound calls | 8 | srvlookup=yes ; Enable DNS SRV lookups on outbound calls |
| 9 | realm=192.168.3.131 | 9 | realm=REPLACESERVERIP |
| 10 | 10 | ||
| 11 | allow = !all,ulaw,alaw,gsm,g723,g726,g729,h264,h263,ilbc,g726aal2,mpeg4,vp8 | 11 | allow = !all,ulaw,alaw,gsm,g723,g726,g729,h264,h263,ilbc,g726aal2,mpeg4,vp8 |
| 12 | 12 | ||
| ... | @@ -16,7 +16,7 @@ rtpkeepalive=60 ; Send keepalives in the RTP stream to keep NAT open | ... | @@ -16,7 +16,7 @@ rtpkeepalive=60 ; Send keepalives in the RTP stream to keep NAT open |
| 16 | notifyringing = yes ; Notify subscriptions on RINGING state (default: no) | 16 | notifyringing = yes ; Notify subscriptions on RINGING state (default: no) |
| 17 | notifyhold = yes ; Notify subscriptions on HOLD state (default: no) | 17 | notifyhold = yes ; Notify subscriptions on HOLD state (default: no) |
| 18 | limitonpeers = yes ; Apply call limits on peers only. This will improve | 18 | limitonpeers = yes ; Apply call limits on peers only. This will improve |
| 19 | externip=192.168.3.131 | 19 | externip=REPLACESERVERIP |
| 20 | localnet=192.168.0.0/255.255.0.0; All RFC 1918 addresses are local networks | 20 | localnet=192.168.0.0/255.255.0.0; All RFC 1918 addresses are local networks |
| 21 | localnet=10.0.0.0/255.0.0.0 ; Also RFC1918 | 21 | localnet=10.0.0.0/255.0.0.0 ; Also RFC1918 |
| 22 | localnet=172.16.0.0/12 ; Another RFC1918 with CIDR notation | 22 | localnet=172.16.0.0/12 ; Another RFC1918 with CIDR notation |
| ... | @@ -25,11 +25,22 @@ nat=force_rport,comedia ; Global NAT settings (Affects all | ... | @@ -25,11 +25,22 @@ nat=force_rport,comedia ; Global NAT settings (Affects all |
| 25 | qualify=yes ; By default, qualify all peers at 2000ms | 25 | qualify=yes ; By default, qualify all peers at 2000ms |
| 26 | limitonpeer = yes ; enable call limit on a per peer basis, different from limitonpeers | 26 | limitonpeer = yes ; enable call limit on a per peer basis, different from limitonpeers |
| 27 | icesupport = yes | 27 | icesupport = yes |
| 28 | stunaddr = 192.168.3.131:3478 | 28 | stunaddr = REPLACESERVERIP:3478 |
| 29 | alwaysauthreject = yes | 29 | alwaysauthreject = yes |
| 30 | 30 | ||
| 31 | rtcp_mux=yes | 31 | rtcp_mux=yes |
| 32 | turnaddr=192.168.3.131 | 32 | turnaddr=REPLACESERVERIP |
| 33 | turnusername=test | 33 | turnusername=test |
| 34 | turnpassword=1234 | 34 | turnpassword=1234 |
| 35 | 35 | ||
| 36 | [GATEWAY] | ||
| 37 | type=peer | ||
| 38 | host=10.3.180.33 | ||
| 39 | dtmfmode=inband ; the possibilities are inband , rfc2833, or info | ||
| 40 | disallow=all | ||
| 41 | allow=ulaw; because we have chosen inband for dtmf we need alaw or ulaw (G.711) | ||
| 42 | allow=alaw | ||
| 43 | context=SIPDialerINB | ||
| 44 | |||
| 45 | |||
| 46 | ... | ... |
| ... | @@ -60,8 +60,8 @@ kstychCall['agentcomments']=''; | ... | @@ -60,8 +60,8 @@ kstychCall['agentcomments']=''; |
| 60 | kstychCall['supcomntid']=''; | 60 | kstychCall['supcomntid']=''; |
| 61 | kstychCall['userdata']={}; | 61 | kstychCall['userdata']={}; |
| 62 | kstychCall['previewcrmid']=''; | 62 | kstychCall['previewcrmid']=''; |
| 63 | kstychCall['callWrapupTime']=300; | 63 | kstychCall['callWrapupTime']=180; |
| 64 | kstychCall['prograssiveDelay']=120; | 64 | kstychCall['prograssiveDelay']=20; |
| 65 | kstychCall['ts_now']=0; | 65 | kstychCall['ts_now']=0; |
| 66 | 66 | ||
| 67 | kstychCall['bttc_day']=''; | 67 | kstychCall['bttc_day']=''; |
| ... | @@ -143,8 +143,6 @@ function kcallHasConnection(number) | ... | @@ -143,8 +143,6 @@ function kcallHasConnection(number) |
| 143 | 143 | ||
| 144 | function dialerQuickOpen(varid,num,state,substate,autorun) | 144 | function dialerQuickOpen(varid,num,state,substate,autorun) |
| 145 | { | 145 | { |
| 146 | resetCallArray(); | ||
| 147 | |||
| 148 | if(kstychCall['mCallState']=="Wait") | 146 | if(kstychCall['mCallState']=="Wait") |
| 149 | { | 147 | { |
| 150 | var oldpreviewid=kstychCall['previewcrmid']; | 148 | var oldpreviewid=kstychCall['previewcrmid']; |
| ... | @@ -282,7 +280,7 @@ function kCallAction(num,action) | ... | @@ -282,7 +280,7 @@ function kCallAction(num,action) |
| 282 | function dialerDispNumberClick() | 280 | function dialerDispNumberClick() |
| 283 | { | 281 | { |
| 284 | var lastnumber=$("#spandialer_num").html(); | 282 | var lastnumber=$("#spandialer_num").html(); |
| 285 | kstychCall['callWrapupTime']=300; | 283 | kstychCall['callWrapupTime']=180; |
| 286 | 284 | ||
| 287 | if(kstychCall['mCallState']=="Dispo") | 285 | if(kstychCall['mCallState']=="Dispo") |
| 288 | { | 286 | { |
| ... | @@ -327,9 +325,6 @@ function dialerAddConfCall() | ... | @@ -327,9 +325,6 @@ function dialerAddConfCall() |
| 327 | function incomingCall(calllog,crmid,numnchn) | 325 | function incomingCall(calllog,crmid,numnchn) |
| 328 | { | 326 | { |
| 329 | //document.getElementById("hangup").play(); | 327 | //document.getElementById("hangup").play(); |
| 330 | //stopRingTone(); | ||
| 331 | resetCallArray(); | ||
| 332 | |||
| 333 | $("#dialersearchresults").html('<div id=divworking></div><div style="clear:both"></div>'); | 328 | $("#dialersearchresults").html('<div id=divworking></div><div style="clear:both"></div>'); |
| 334 | 329 | ||
| 335 | var number = numnchn.substring(0, numnchn.indexOf('@')); | 330 | var number = numnchn.substring(0, numnchn.indexOf('@')); |
| ... | @@ -342,8 +337,7 @@ function incomingCall(calllog,crmid,numnchn) | ... | @@ -342,8 +337,7 @@ function incomingCall(calllog,crmid,numnchn) |
| 342 | kSetDData('C','callid',calllog); | 337 | kSetDData('C','callid',calllog); |
| 343 | kSetDData('C','crmid',crmid); | 338 | kSetDData('C','crmid',crmid); |
| 344 | 339 | ||
| 345 | if(crmid>0) | 340 | if(crmid>0)showRecruit(crmid); |
| 346 | showRecruit(crmid); | ||
| 347 | else | 341 | else |
| 348 | { | 342 | { |
| 349 | createSearchRecordDiv('dialersearchresults'); | 343 | createSearchRecordDiv('dialersearchresults'); |
| ... | @@ -429,24 +423,9 @@ function dialerUIUpdate(var1,var2,var3) | ... | @@ -429,24 +423,9 @@ function dialerUIUpdate(var1,var2,var3) |
| 429 | 423 | ||
| 430 | function incomingPopupAlert(var1,var2,var3) | 424 | function incomingPopupAlert(var1,var2,var3) |
| 431 | { | 425 | { |
| 432 | var loginRoleArray=["R14306"]; | ||
| 433 | var fullexten = $('#userExtension').val(); | ||
| 434 | console.log("Full Extension : " + fullexten); | ||
| 435 | var exten =fullexten.split(':')[0]; | ||
| 436 | console.log("Exten : " + exten); | ||
| 437 | |||
| 438 | //var incomingnotify=growlSNotify(var1,var2,"top-right"); | 426 | //var incomingnotify=growlSNotify(var1,var2,"top-right"); |
| 439 | //setTimeout(function(){$.gritter.remove(incomingnotify, {fade: true,speed: 'slow'});incomingnotify=0;},1500); | 427 | //setTimeout(function(){$.gritter.remove(incomingnotify, {fade: true,speed: 'slow'});incomingnotify=0;},1500); |
| 440 | 428 | //document.getElementById("hangup").play(); | |
| 441 | if((kstychCall['ts_Talk']===0 && kstychCall['ts_Call']===0)) | ||
| 442 | { | ||
| 443 | // if($('#userLoginRole').val()=="Unit_Head") | ||
| 444 | // startRingTone(); | ||
| 445 | if($.inArray($('#userLoginRole').val(), loginRoleArray)>-1 && (var3===exten)) | ||
| 446 | startRingTone(); | ||
| 447 | } | ||
| 448 | |||
| 449 | console.log("Var 1 : "+var1+"Var 2: "+var2+"Var 3 : "+var3); | ||
| 450 | $.titleAlert(var1+" "+var2, { | 429 | $.titleAlert(var1+" "+var2, { |
| 451 | requireBlur:true, | 430 | requireBlur:true, |
| 452 | stopOnFocus:true, | 431 | stopOnFocus:true, |
| ... | @@ -456,7 +435,6 @@ function incomingPopupAlert(var1,var2,var3) | ... | @@ -456,7 +435,6 @@ function incomingPopupAlert(var1,var2,var3) |
| 456 | 435 | ||
| 457 | //incomingbeepstart(); | 436 | //incomingbeepstart(); |
| 458 | kDesktopNotification("",var1,var2,1500); | 437 | kDesktopNotification("",var1,var2,1500); |
| 459 | setTimeout(stopRingTone, 3000); | ||
| 460 | } | 438 | } |
| 461 | 439 | ||
| 462 | function outgoingCall() | 440 | function outgoingCall() |
| ... | @@ -582,6 +560,7 @@ function saveCloseDialerCall(flag) | ... | @@ -582,6 +560,7 @@ function saveCloseDialerCall(flag) |
| 582 | kstychCall['userstatus']=$('#dialer_userstatus').val(); | 560 | kstychCall['userstatus']=$('#dialer_userstatus').val(); |
| 583 | kstychCall['usersubstatus']=$('#dialer_usersubstatus').val(); | 561 | kstychCall['usersubstatus']=$('#dialer_usersubstatus').val(); |
| 584 | kstychCall['usercallback']=$('#dialer_usercallback').val(); | 562 | kstychCall['usercallback']=$('#dialer_usercallback').val(); |
| 563 | kstychCall['userappointment']=$('#dialer_appointment').val(); | ||
| 585 | kstychCall["attempt"]=$('#attempt').val();//attempt dropdown value insert | 564 | kstychCall["attempt"]=$('#attempt').val();//attempt dropdown value insert |
| 586 | 565 | ||
| 587 | //kstychCall['userremarks']=$('#dialer_userremarks').val(); | 566 | //kstychCall['userremarks']=$('#dialer_userremarks').val(); |
| ... | @@ -617,8 +596,12 @@ console.log(fullRem); | ... | @@ -617,8 +596,12 @@ console.log(fullRem); |
| 617 | { | 596 | { |
| 618 | kstychCall['userstatus']="AUTOWRAPUP"; | 597 | kstychCall['userstatus']="AUTOWRAPUP"; |
| 619 | kstychCall['usersubstatus']="AUTOWRAPUP"; | 598 | kstychCall['usersubstatus']="AUTOWRAPUP"; |
| 599 | |||
| 600 | |||
| 620 | $('#dialer_usercallback').val(""); | 601 | $('#dialer_usercallback').val(""); |
| 621 | kstychCall['usercallback']=""; | 602 | kstychCall['usercallback']=""; |
| 603 | $('#dialer_appointment').val(""); | ||
| 604 | kstychCall['userappointment']=""; | ||
| 622 | kstychCall['userremarks']=""; | 605 | kstychCall['userremarks']=""; |
| 623 | kstychCall['userflag']=""; | 606 | kstychCall['userflag']=""; |
| 624 | } | 607 | } |
| ... | @@ -628,6 +611,8 @@ console.log(fullRem); | ... | @@ -628,6 +611,8 @@ console.log(fullRem); |
| 628 | kstychCall['usersubstatus']="REDIAL"; | 611 | kstychCall['usersubstatus']="REDIAL"; |
| 629 | $('#dialer_usercallback').val(""); | 612 | $('#dialer_usercallback').val(""); |
| 630 | kstychCall['usercallback']=""; | 613 | kstychCall['usercallback']=""; |
| 614 | $('#dialer_appointment').val(""); | ||
| 615 | kstychCall['userappointment']=""; | ||
| 631 | kstychCall['userremarks']=""; | 616 | kstychCall['userremarks']=""; |
| 632 | kstychCall['userflag']=""; | 617 | kstychCall['userflag']=""; |
| 633 | 618 | ||
| ... | @@ -638,11 +623,13 @@ console.log(fullRem); | ... | @@ -638,11 +623,13 @@ console.log(fullRem); |
| 638 | kstychCall['userstatus']="NORECORD"; | 623 | kstychCall['userstatus']="NORECORD"; |
| 639 | kstychCall['usersubstatus']="NORECORD"; | 624 | kstychCall['usersubstatus']="NORECORD"; |
| 640 | kstychCall['usercallback']=""; | 625 | kstychCall['usercallback']=""; |
| 626 | kstychCall['userappointment']=""; | ||
| 641 | kstychCall['userremarks']=""; | 627 | kstychCall['userremarks']=""; |
| 642 | kstychCall['userflag']=""; | 628 | kstychCall['userflag']=""; |
| 643 | kstychCall["attempt"]=""; | 629 | kstychCall["attempt"]=""; |
| 644 | 630 | ||
| 645 | $('#dialer_usercallback').val(""); | 631 | $('#dialer_usercallback').val(""); |
| 632 | $('#dialer_appointment').val(""); | ||
| 646 | } | 633 | } |
| 647 | else | 634 | else |
| 648 | { | 635 | { |
| ... | @@ -664,11 +651,11 @@ console.log(fullRem); | ... | @@ -664,11 +651,11 @@ console.log(fullRem); |
| 664 | } | 651 | } |
| 665 | }*/ | 652 | }*/ |
| 666 | 653 | ||
| 667 | if(kstychCall['userstatus'].toLowerCase().indexOf("follow")>-1||kstychCall['userstatus'].toLowerCase().indexOf("callback")>-1) | 654 | if(kstychCall['usersubstatus'].toLowerCase().indexOf("follow up")>-1||kstychCall['userstatus'].toLowerCase().indexOf("callback")>-1) |
| 668 | { | 655 | { |
| 669 | if($('#dialer_usercallback').val()=="") | 656 | if($('#dialer_usercallback').val()=="") |
| 670 | { | 657 | { |
| 671 | console.log("followup"); | 658 | //console.log("followup"); |
| 672 | simpleNotification('error','topRight',"Please select Callback date within one month in future"); | 659 | simpleNotification('error','topRight',"Please select Callback date within one month in future"); |
| 673 | return; | 660 | return; |
| 674 | } | 661 | } |
| ... | @@ -700,6 +687,40 @@ console.log(fullRem); | ... | @@ -700,6 +687,40 @@ console.log(fullRem); |
| 700 | return; | 687 | return; |
| 701 | } | 688 | } |
| 702 | 689 | ||
| 690 | if(kstychCall['usersubstatus'].toLowerCase().indexOf("appointment")>-1||kstychCall['userstatus'].toLowerCase().indexOf("appointment")>-1) | ||
| 691 | { | ||
| 692 | if($('#dialer_appointment').val()=="") | ||
| 693 | { | ||
| 694 | //console.log("followup"); | ||
| 695 | simpleNotification('error','topRight',"Please select Appointment Date within one month in future"); | ||
| 696 | return; | ||
| 697 | } | ||
| 698 | } | ||
| 699 | else | ||
| 700 | { | ||
| 701 | if($('#dialer_appointment').val()!="") | ||
| 702 | { | ||
| 703 | simpleNotification('error','topRight',"You Cannot input Appointment date time in this Disposition"); | ||
| 704 | return; | ||
| 705 | } | ||
| 706 | } | ||
| 707 | |||
| 708 | var date3 = new Date($('#dialer_appointment').val()); | ||
| 709 | var diff = date3.getTime() - date1.getTime(); | ||
| 710 | if(diff<0||diff>30*24*60*60*1000) | ||
| 711 | { | ||
| 712 | simpleNotification('error','topRight',"Please select Appointment date within one month in future"); | ||
| 713 | return; | ||
| 714 | } | ||
| 715 | var hours = date3.getHours(); | ||
| 716 | var mins = date3.getMinutes(); | ||
| 717 | var fullhour=hours+(mins/60); | ||
| 718 | if(fullhour<9||fullhour>19) | ||
| 719 | { | ||
| 720 | simpleNotification('error','topRight',"Please select Appointment Time date within 9AM and 7PM"); | ||
| 721 | return; | ||
| 722 | } | ||
| 723 | |||
| 703 | } | 724 | } |
| 704 | 725 | ||
| 705 | if($("#recruitsavedata").length)$("#recruitsavedata").click();//TODO hold div in reset, or any error will be lost | 726 | if($("#recruitsavedata").length)$("#recruitsavedata").click();//TODO hold div in reset, or any error will be lost |
| ... | @@ -797,12 +818,13 @@ console.log(fullRem); | ... | @@ -797,12 +818,13 @@ console.log(fullRem); |
| 797 | 818 | ||
| 798 | function showWrapUp() | 819 | function showWrapUp() |
| 799 | { | 820 | { |
| 800 | incomingbeepstart(); | ||
| 801 | //document.getElementById("hangup").play(); | 821 | //document.getElementById("hangup").play(); |
| 802 | kstychCall['userstatus']="Paused"; | 822 | kstychCall['userstatus']="Paused"; |
| 803 | kstychCall['usersubstatus']="WRAPUP"; | 823 | kstychCall['usersubstatus']="WRAPUP"; |
| 804 | $('#dialer_usercallback').val(""); | 824 | $('#dialer_usercallback').val(""); |
| 805 | kstychCall['usercallback']=""; | 825 | kstychCall['usercallback']=""; |
| 826 | kstychCall['usercallback']=""; | ||
| 827 | $('#dialer_appointment').val(""); | ||
| 806 | kstychCall['userremarks']=""; | 828 | kstychCall['userremarks']=""; |
| 807 | kstychCall['userflag']=""; | 829 | kstychCall['userflag']=""; |
| 808 | 830 | ||
| ... | @@ -835,11 +857,12 @@ function resetDialer() | ... | @@ -835,11 +857,12 @@ function resetDialer() |
| 835 | 857 | ||
| 836 | var dialerResetForceState=kstychDialer['mDialerState']; | 858 | var dialerResetForceState=kstychDialer['mDialerState']; |
| 837 | var dialerResetForceSubState=kstychDialer['mDialerSubState']; | 859 | var dialerResetForceSubState=kstychDialer['mDialerSubState']; |
| 838 | |||
| 839 | if(dialerResetForceSubState != "Predictive"){ | 860 | if(dialerResetForceSubState != "Predictive"){ |
| 840 | dialerResetForceState="Progressive";//Hardcoded TODO change to config | 861 | dialerResetForceState="Progressive";//Hardcoded TODO change to config |
| 841 | dialerResetForceSubState=""; | 862 | dialerResetForceSubState=""; |
| 842 | } | 863 | } |
| 864 | //dialerResetForceState="Progressive";//Hardcoded TODO change to config | ||
| 865 | //dialerResetForceSubState=""; | ||
| 843 | 866 | ||
| 844 | if(kstychCall['userstatus']=="AUTOWRAPUP") | 867 | if(kstychCall['userstatus']=="AUTOWRAPUP") |
| 845 | { | 868 | { |
| ... | @@ -900,11 +923,12 @@ function resetCallArray() | ... | @@ -900,11 +923,12 @@ function resetCallArray() |
| 900 | if(typeof customerDispofields != 'undefined')customerDispofields={}; | 923 | if(typeof customerDispofields != 'undefined')customerDispofields={}; |
| 901 | 924 | ||
| 902 | kSetDData('C','previewcrmid',""); | 925 | kSetDData('C','previewcrmid',""); |
| 903 | kSetDData('C','callWrapupTime',300); | 926 | kSetDData('C','callWrapupTime',180); |
| 904 | kSetDData('C','prograssiveDelay',120); | 927 | kSetDData('C','prograssiveDelay',20); |
| 928 | |||
| 905 | } | 929 | } |
| 906 | 930 | ||
| 907 | function savedialermode() | 931 | function savedialermode(client) |
| 908 | { | 932 | { |
| 909 | var datastr="kstychCall="+JSON.stringify(kstychCall); | 933 | var datastr="kstychCall="+JSON.stringify(kstychCall); |
| 910 | datastr+="&kstychDialer="+JSON.stringify(kstychDialer); | 934 | datastr+="&kstychDialer="+JSON.stringify(kstychDialer); |
| ... | @@ -912,6 +936,7 @@ function savedialermode() | ... | @@ -912,6 +936,7 @@ function savedialermode() |
| 912 | doAjax("dialer?action=usersel&client="+client,datastr,"","","singlefail","POST"); | 936 | doAjax("dialer?action=usersel&client="+client,datastr,"","","singlefail","POST"); |
| 913 | } | 937 | } |
| 914 | 938 | ||
| 939 | |||
| 915 | function updateDialerState(objstr,key,val,key2,val2) | 940 | function updateDialerState(objstr,key,val,key2,val2) |
| 916 | { | 941 | { |
| 917 | if(objstr=="dialer") | 942 | if(objstr=="dialer") |
| ... | @@ -934,16 +959,7 @@ function updateDialerState(objstr,key,val,key2,val2) | ... | @@ -934,16 +959,7 @@ function updateDialerState(objstr,key,val,key2,val2) |
| 934 | { | 959 | { |
| 935 | resetCallArray(); | 960 | resetCallArray(); |
| 936 | } | 961 | } |
| 937 | console.log("manojstatechanged"); | ||
| 938 | if(val=="Manual"){ | ||
| 939 | console.log("Manoj"); | ||
| 940 | resetCallArray(); | ||
| 941 | 962 | ||
| 942 | } | ||
| 943 | if(val2=="Incoming"){ | ||
| 944 | console.log("Manoj Incoming"); | ||
| 945 | resetCallArray(); | ||
| 946 | } | ||
| 947 | 963 | ||
| 948 | 964 | ||
| 949 | $("#dialersearchresults").html(""); | 965 | $("#dialersearchresults").html(""); |
| ... | @@ -951,7 +967,7 @@ function updateDialerState(objstr,key,val,key2,val2) | ... | @@ -951,7 +967,7 @@ function updateDialerState(objstr,key,val,key2,val2) |
| 951 | 967 | ||
| 952 | var datastr="kstychCall="+JSON.stringify(kstychCall); | 968 | var datastr="kstychCall="+JSON.stringify(kstychCall); |
| 953 | datastr+="&kstychDialer="+JSON.stringify(kstychDialer); | 969 | datastr+="&kstychDialer="+JSON.stringify(kstychDialer); |
| 954 | //var client = $('#tcampaign_select').val(); | 970 | var client = $('#tcampaign_select').val(); |
| 955 | 971 | ||
| 956 | doAjax('dialer?action=dialerstate&client='+client,datastr,'', 'ajax_manualdial','singlefail','POST', | 972 | doAjax('dialer?action=dialerstate&client='+client,datastr,'', 'ajax_manualdial','singlefail','POST', |
| 957 | function(retstr){ | 973 | function(retstr){ |
| ... | @@ -962,8 +978,7 @@ function updateDialerState(objstr,key,val,key2,val2) | ... | @@ -962,8 +978,7 @@ function updateDialerState(objstr,key,val,key2,val2) |
| 962 | function(retstr){ | 978 | function(retstr){ |
| 963 | if(kstychCall['previewcrmid']!="") | 979 | if(kstychCall['previewcrmid']!="") |
| 964 | { | 980 | { |
| 965 | console.log("manojpreview"); | 981 | kSetDData('C','previewcrmid',""); |
| 966 | //kSetDData('C','previewcrmid',""); | ||
| 967 | updateDialerState(); | 982 | updateDialerState(); |
| 968 | } | 983 | } |
| 969 | else | 984 | else |
| ... | @@ -980,9 +995,8 @@ function updateDialerState(objstr,key,val,key2,val2) | ... | @@ -980,9 +995,8 @@ function updateDialerState(objstr,key,val,key2,val2) |
| 980 | 995 | ||
| 981 | updateDialerState(); | 996 | updateDialerState(); |
| 982 | }); | 997 | }); |
| 983 | 998 | //if(val2=="Predictive") | |
| 984 | if(val2=="Predictive") | 999 | savedialermode(client); |
| 985 | savedialermode(val2); | ||
| 986 | } | 1000 | } |
| 987 | } | 1001 | } |
| 988 | if(objstr=="call") | 1002 | if(objstr=="call") |
| ... | @@ -1237,7 +1251,7 @@ function dialerTimersUpdate() | ... | @@ -1237,7 +1251,7 @@ function dialerTimersUpdate() |
| 1237 | { | 1251 | { |
| 1238 | if(Math.ceil(((kstychCall['ts_Dispo']-kstychCall['ts_Talk'])/1000))<3) | 1252 | if(Math.ceil(((kstychCall['ts_Dispo']-kstychCall['ts_Talk'])/1000))<3) |
| 1239 | { | 1253 | { |
| 1240 | kstychCall['callWrapupTime']=90; | 1254 | kstychCall['callWrapupTime']=60; |
| 1241 | if(typeof dispoClassArray!='undefined' && typeof dispoClassArray['NA'] != 'undefined') | 1255 | if(typeof dispoClassArray!='undefined' && typeof dispoClassArray['NA'] != 'undefined') |
| 1242 | { | 1256 | { |
| 1243 | if($('#dialer_userstatus').val()=="") | 1257 | if($('#dialer_userstatus').val()=="") |
| ... | @@ -1255,13 +1269,18 @@ function dialerTimersUpdate() | ... | @@ -1255,13 +1269,18 @@ function dialerTimersUpdate() |
| 1255 | saveCloseDialerCall('AUTOWRAPUP'); | 1269 | saveCloseDialerCall('AUTOWRAPUP'); |
| 1256 | } | 1270 | } |
| 1257 | 1271 | ||
| 1272 | if(thiswraptime==60 || thiswraptime==180) | ||
| 1273 | { | ||
| 1274 | showWrapUp(); | ||
| 1275 | } | ||
| 1276 | |||
| 1258 | dispD="Wrapup : "+thiswraptime; | 1277 | dispD="Wrapup : "+thiswraptime; |
| 1259 | $("#spandialer_ts").html(dispD); | 1278 | $("#spandialer_ts").html(dispD); |
| 1260 | $("#dialertimes1").removeClass("btn-default").addClass("btn-primary"); | 1279 | $("#dialertimes1").removeClass("btn-default").addClass("btn-primary"); |
| 1261 | } | 1280 | } |
| 1262 | else if(kstychCall['ts_Talk']>1) | 1281 | else if(kstychCall['ts_Talk']>1) |
| 1263 | { | 1282 | { |
| 1264 | kstychCall['callWrapupTime']=300; | 1283 | kstychCall['callWrapupTime']=180; |
| 1265 | dispT="Talk : "+Math.ceil(((getNowTS()-kstychCall['ts_Talk'])/1000)); | 1284 | dispT="Talk : "+Math.ceil(((getNowTS()-kstychCall['ts_Talk'])/1000)); |
| 1266 | $("#spandialer_ts").html(dispT); | 1285 | $("#spandialer_ts").html(dispT); |
| 1267 | $("#dialertimes1").removeClass("btn-primary").addClass("btn-default"); | 1286 | $("#dialertimes1").removeClass("btn-primary").addClass("btn-default"); |
| ... | @@ -2258,7 +2277,7 @@ function dialerSipMsg(omsg) | ... | @@ -2258,7 +2277,7 @@ function dialerSipMsg(omsg) |
| 2258 | { | 2277 | { |
| 2259 | try | 2278 | try |
| 2260 | { | 2279 | { |
| 2261 | if(omsg.ao_headers[6].s_name=='kstych-Data') | 2280 | if(omsg.ao_headers[6].s_name=='kstych-data') |
| 2262 | { | 2281 | { |
| 2263 | var vparts=omsg.ao_headers[6].s_value.split("|"); | 2282 | var vparts=omsg.ao_headers[6].s_value.split("|"); |
| 2264 | 2283 | ... | ... |
This diff is collapsed.
Click to expand it.
No preview for this file type
application/public/debugdump.txt
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
application/public/sms_test.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/public/sms_test_1.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
No preview for this file type
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/resources/views/layout/module/campaign/campaignAssignToDisposition.blade-2002.php
0 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
No preview for this file type
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/resources/views/layout/module/outputreport/supervisorreport.blade.php
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
No preview for this file type
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/doc/PAGI-CallSpool-Exception-CallSpoolException.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/doc/PAGI-ChannelVariables-IChannelVariables.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/doc/PAGI-Client-Result-ReadResultDecorator.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/doc/PAGI-DialDescriptor-DAHDIDialDescriptor.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/doc/PAGI-DialDescriptor-LocalDialDescriptor.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/doc/PAGI-DialDescriptor-SIPDialDescriptor.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/doc/PAGI-Exception-DatabaseInvalidEntryException.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/doc/PAGI-Exception-ExecuteCommandException.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/doc/PAGI-Exception-InvalidCommandException.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/doc/PAGI-Logger-Asterisk-Impl-AsteriskLoggerImpl.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/src/PAGI/CallSpool/Exception/CallSpoolException.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/src/PAGI/ChannelVariables/IChannelVariables.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/src/PAGI/Client/Result/ReadResultDecorator.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/src/PAGI/DialDescriptor/DAHDIDialDescriptor.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/src/PAGI/DialDescriptor/LocalDialDescriptor.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/src/PAGI/DialDescriptor/SIPDialDescriptor.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/src/PAGI/Exception/DatabaseInvalidEntryException.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/src/PAGI/Exception/ExecuteCommandException.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/src/PAGI/Exception/InvalidCommandException.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/src/PAGI/Logger/Asterisk/IAsteriskLogger.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pagi/src/PAGI/Logger/Asterisk/Impl/AsteriskLoggerImpl.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
No preview for this file type
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Client-Exception-ClientException.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-AbsoluteTimeoutAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-AgentLogoffAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-AttendedTransferAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-ChangeMonitorAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-ConfbridgeMuteAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-ConfbridgeUnmuteAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-CoreSettingsAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-CoreShowChannelsAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-CreateConfigAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-DAHDIDNDOffAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-DAHDIDialOffHookAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-DAHDIHangupAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-DAHDIRestartAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-DAHDIShowChannelsAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-DongleReloadAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-DongleResetAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-DongleRestartAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-DongleSendPDUAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-DongleSendSMSAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-DongleSendUSSDAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-DongleShowDevicesAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-DongleStartAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-ExtensionStateAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-GetConfigJSONAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-ListCategoriesAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-ListCommandsAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-LocalOptimizeAwayAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-MailboxCountAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-MailboxStatusAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-MeetmeUnmuteAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-ModuleCheckAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-ModuleReloadAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-ModuleUnloadAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-ParkedCallsAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-PauseMonitorAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-QueuePenaltyAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-QueueReloadAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-QueueRemoveAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-QueueStatusAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-QueueSummaryAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-QueueUnpauseAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-SIPQualifyPeerAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-SIPShowPeerAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-SIPShowRegistryAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-ShowDialPlanAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-StopMixMonitorAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-StopMonitorAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-UnpauseMonitorAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-UpdateConfigAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Action-VoicemailUsersListAction.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-AgentsCompleteEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-ChannelUpdateEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-CoreShowChannelEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-CoreShowChannelsCompleteEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-DAHDIShowChannelsEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-DBGetResponseEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-DongleDeviceEntryEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-DongleNewCUSDEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-DongleNewUSSDBase64Event.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-DongleNewUSSDEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-DongleSMSStatusEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-DongleUSSDStatusEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-ExtensionStatusEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-Factory-Impl-EventFactoryImpl.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-MessageWaitingEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-NewAccountCodeEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-OriginateResponseEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-ParkedCallsCompleteEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-PeerlistCompleteEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-QueueMemberAddedEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-QueueMemberPausedEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-QueueMemberRemovedEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-QueueMemberStatusEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-QueueStatusCompleteEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-QueueSummaryCompleteEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-RTCPReceiverStatEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-RTPReceiverStatEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-RTPSenderStatEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-RegistrationsCompleteEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-ShowDialPlanCompleteEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-StatusCompleteEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Event-VoicemailUserEntryEvent.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/doc/PAMI-Message-Response-ResponseMessage.md
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Client/Exception/ClientException.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/AbsoluteTimeoutAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/AgentLogoffAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/AttendedTransferAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/ChangeMonitorAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/ConfbridgeMuteAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/ConfbridgeUnmuteAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/CoreSettingsAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/CoreShowChannelsAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/CoreStatusAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/CreateConfigAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DAHDIDNDOffAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DAHDIDNDOnAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DAHDIDialOffHookAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DAHDIHangupAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DAHDIRestartAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DAHDIShowChannelsAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DAHDITransferAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DongleReloadAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DongleResetAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DongleRestartAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DongleSendPDUAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DongleSendSMSAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DongleSendUSSDAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DongleShowDevicesAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DongleStartAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/DongleStopAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/ExtensionStateAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/GetConfigJSONAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/JabberSendAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/ListCategoriesAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/ListCommandsAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/LocalOptimizeAwayAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/MailboxCountAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/MailboxStatusAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/MeetmeListAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/MeetmeMuteAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/MeetmeUnmuteAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/MixMonitorAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/ModuleCheckAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/ModuleLoadAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/ModuleReloadAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/ModuleUnloadAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/ParkedCallsAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/PauseMonitorAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/QueuePauseAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/QueuePenaltyAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/QueueReloadAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/QueueRemoveAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/QueueResetAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/QueueStatusAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/QueueSummaryAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/QueueUnpauseAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/SIPQualifyPeerAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/SIPShowPeerAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/SIPShowRegistryAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/SetCDRUserFieldAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/ShowDialPlanAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/StopMixMonitorAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/StopMonitorAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/UnpauseMonitorAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/UpdateConfigAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Action/VoicemailUsersListAction.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/AgentConnectEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/AgentsCompleteEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/BlindTransferEvent.php
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/ChannelUpdateEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/CoreShowChannelEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/DAHDIShowChannelsEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/DBGetResponseEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/DongleDeviceEntryEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/DongleNewCUSDEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/DongleNewUSSDBase64Event.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/DongleNewUSSDEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/DongleSMSStatusEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/DongleStatusEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/DongleUSSDStatusEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/ExtensionStatusEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/ListDialplanEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/MessageWaitingEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/NewAccountCodeEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/OriginateResponseEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/ParkedCallsCompleteEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/PeerlistCompleteEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/QueueMemberAddedEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/QueueMemberPausedEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/QueueMemberRemovedEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/QueueMemberStatusEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/QueueStatusCompleteEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/QueueSummaryCompleteEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/QueueSummaryEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/RTCPReceivedEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/RTCPReceiverStatEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/RTPReceiverStatEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/RTPSenderStatEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/RegistrationsCompleteEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/ShowDialPlanCompleteEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/StatusCompleteEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/UnParkedCallEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/VgsmNetStateEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Event/VoicemailUserEntryEvent.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/old_pami/src/PAMI/Message/Response/ResponseMessage.php
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/.codeclimate.yml
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/.gitignore
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/.travis.yml
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/LICENSE
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/README.md
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/build.xml
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/composer.json
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/doc/ApiIndex.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/doc/PAGI-CDR-ICDR.md
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/doc/PAGI-CDR-Impl-CDRFacade.md
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/doc/PAGI-CallSpool-CallFile.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/doc/PAGI-CallerId-ICallerId.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/doc/PAGI-ChannelVariables-Impl-ChannelVariablesFacade.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/doc/PAGI-Client-IClient.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/doc/PAGI-Exception-DatabaseInvalidEntryException.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/doc/PAGI-Logger-Asterisk-Impl-AsteriskLoggerImpl.md
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/doc/PAGI-Logger-Asterisk-Impl-MockedAsteriskLoggerImpl.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/doc/PAGI-Node-MockedNode.md
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/doc/PAGI-Node-Node.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/doc/PAGI-Node-NodeController.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/doc/examples/mock/mocktest.php
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/doc/examples/node/example.php
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/src/PAGI/CDR/ICDR.php
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/src/PAGI/CDR/Impl/CDRFacade.php
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/src/PAGI/CallSpool/CallFile.php
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/src/PAGI/CallSpool/Exception/CallSpoolException.php
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/src/PAGI/CallerId/ICallerId.php
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/src/PAGI/ChannelVariables/Impl/ChannelVariablesFacade.php
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/src/PAGI/Client/IClient.php
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/src/PAGI/Exception/DatabaseInvalidEntryException.php
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/src/PAGI/Logger/Asterisk/Impl/AsteriskLoggerImpl.php
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/src/PAGI/Logger/Asterisk/Impl/MockedAsteriskLoggerImpl.php
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/src/PAGI/Node/MockedNode.php
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/src/PAGI/Node/Node.php
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/test/callerid/Test_CallerID.php
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/test/cdr/Test_CDR.php
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/test/client/Test_Client.php
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/test/mock/Test_Mock.php
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/test/mock/Test_Node.php
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/test/node/Test_Node.php
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/test/resources/bootstrap.php
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/test/resources/inputstream.txt
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/test/resources/php.ini
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/test/resources/phpunit.xml
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pagi/test/spool/Test_CallSpool.php
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/.codeclimate.yml
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/.gitignore
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/.travis.yml
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/LICENSE
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/README.md
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/build.xml
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/composer.json
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/doc/ApiIndex.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/doc/PAMI-Client-IClient.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/doc/PAMI-Message-Action-VoicemailUsersListAction.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/doc/PAMI-Message-Event-BridgeInfoChannelEvent.md
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/doc/PAMI-Message-Event-BridgeInfoCompleteEvent.md
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/doc/PAMI-Message-Event-ConfbridgeListCompleteEvent.md
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/doc/PAMI-Message-Event-CoreShowChannelsCompleteEvent.md
100644 → 100755
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/doc/PAMI-Message-Event-DAHDIShowChannelsCompleteEvent.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/doc/PAMI-Message-Event-DongleShowDevicesCompleteEvent.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/doc/PAMI-Message-Event-Factory-Impl-EventFactoryImpl.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/doc/PAMI-Message-Event-QueueSummaryCompleteEvent.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
application/vendor/marcelog/pami/doc/PAMI-Message-Event-RegistrationsCompleteEvent.md
100644 → 100755
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment