Built motion from commit (unavailable).|2.3.3
[motion2.git] / server / services / agi / vertices.js
index abd70ab..900455b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x30b0=['no\x20appid\x20configured','no\x20appsecret\x20configured','NOBEEP','recordFile','intKey','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','priority','condition','true','false','EVAL\x20CONDITION\x20%s\x20%s','interval_id','no\x20interval\x20configured','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','ISPEECH_ASR_%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20%s\x20file\x20created','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','no\x20find\x20by\x20configured','math','Enter\x20in\x20MATH\x20(%s)\x20block','no\x20operation\x20configured','math\x20%s','operation','%s[%s]','variable\x20%s[key]\x20set','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20found','indexOf','QUEUE','macro','gosub','position','recordingFormat','%s_%s','%s/recordings/%s.%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','Smtp','user','bcc','subject','service','host','port','secure','authentication','auth','pass','template_id','debug','sendMail\x20message','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','no\x20sms\x20account\x20found','sms_text','sendSMS\x20message','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','variable_value','start','START\x20CALLY\x20SQUARE','Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','exports','util','lodash','shelljs','randomstring','moment','mustache','../../config/logger','agi','../../config/environment','./scripts','menu','getdigits','rpc','mailRpc','prototype','then','catch','getVoiceQueue','getVoiceQueueById','getSquareProject','getSquareProjectById','name','getSquareOdbc','dsn','getUser','getTrunkById','getSoundById','getSoundPath','save_name','getMailAccount','getMailAccountById','sendMailMessage','getIntervalById','IntervalId','map','Intervals','interval','format','%s/sounds/converted/%s','open','Error\x20getting\x20ODBC\x20connection\x20%s','info','query','Query\x20executed\x20correctly\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','channel','uniqueid','agicommand','arg_1','callerid','createSquareRecording','calleridname','context','extension','dnid','createSquareMessage','createCmContact','isNil','callback_','random','isEmpty','lastName','phone','list_id','scheduledAt','Callback\x20scheduled\x20at\x20','toString','getPause','agentPause','error','agentUnpause','agent','agentLogout','agentLogin','internal','%s/%s@from-sip/n','LOCAL','shellCommand','exec','replace','googleTTS','text','google_tts_language','googleDialogflow','key','dialogflow_language','sestekNDA','ispeechTTS','ispeech_tts_language','en-US','speed','ispeechASR','ispeech_asr_language','model','awsPolly','aws_secret_access_key','aws_polly_region','aws_polly_voice','Amy','aws_text_type','awsLex','aws_bot_name','googleASR','google_asr_language','tildeASR','appid','uri','includes','clone','isString','split','length','replaceAll','getVariable','replaceAllVariables','getAndSetVariable','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','extra','isConfigured','maxRetry','sync','retry','Enter\x20in\x20AGI\x20(%s)\x20block','label','command','args','answer','timeout','Wait\x20%s\x20seconds\x20before\x20answer','wait','callback','Enter\x20in\x20CALLBACK\x20(%s)\x20block','delay','add','minutes','callback_priority','noop','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','options','result','Executed\x20command\x20%s\x20%s','lumenvoxtts','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','no\x20text\x20configured','Executed\x20command\x20MRCPSynth\x20%s','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','grammar','no\x20grammar\x20configured','MRCPRecog','RECOG_CONFIDENCE()','LUMENVOX_ASR_CONFIDENCE','RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT','RECOG_INSTANCE()','Executed\x20command\x20MRCPRecog\x20%s','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20database\x20selected','no\x20odbc\x20database\x20found','no\x20query\x20configured','query:\x20%s','getQueryOdbc','variable_id','no\x20variable\x20found','forEach','keys','setVariable','%s[%s][%s]','%s_ROWS_COUNT','dial','sip_id','no\x20user\x20selected','no\x20user\x20found','DIAL','SIP/%s','url','Executed\x20command\x20%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','DIALOGFLOW_%s','toUpperCase','speech','out','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','username','no\x20username\x20configured','password','no\x20password\x20configured','ndassistant_url','hasOwnProperty','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','audiofile','unlink','.wav','SestekNDA\x20Result\x20%s','end','Enter\x20in\x20END\x20(%s)\x20block','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','SIP/%s/%s','opts','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','no\x20file\x20audio\x20selected','getSound','no\x20file\x20audio\x20found','response','maxdigit','test','stringify','mindigit','hiddendigitsnum','generate','hiddendigitspos','substr','getsecretdigits','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','goalname','GOAL\x20%s','aws_access_key_id','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20is\x20unreachable','no\x20valid\x20credentials\x20configured','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','message','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','%s.%s','beep','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s'];(function(_0x36629c,_0x36689a){var _0x1b0df1=function(_0x20b271){while(--_0x20b271){_0x36629c['push'](_0x36629c['shift']());}};_0x1b0df1(++_0x36689a);}(_0x30b0,0x8d));var _0x030b=function(_0x83bd53,_0x5b13a4){_0x83bd53=_0x83bd53-0x0;var _0x47444e=_0x30b0[_0x83bd53];return _0x47444e;};'use strict';var fs=require('fs');var path=require('path');var util=require(_0x030b('0x0'));var _=require(_0x030b('0x1'));var sh=require(_0x030b('0x2'));var odbc=require('odbc')();var rs=require(_0x030b('0x3'));var moment=require(_0x030b('0x4'));var Mustache=require(_0x030b('0x5'));var logger=require(_0x030b('0x6'))(_0x030b('0x7'));var config=require(_0x030b('0x8'));var scripts=require(_0x030b('0x9'));var FILES_PATH='/var/opt/motion2/server/files';var verticesWithRetry=[_0x030b('0xa'),_0x030b('0xb'),'getsecretdigits'];var AGIVertices=function(_0xa588d2,_0x3c18d5,_0x538a90){this['channel']=_0xa588d2;this[_0x030b('0xc')]=_0x3c18d5;this[_0x030b('0xd')]=_0x538a90;};AGIVertices[_0x030b('0xe')]['getVariable']=function(_0x295f63,_0xe9b713){this[_0x030b('0xc')]['getVariableById'](_0x295f63)[_0x030b('0xf')](function(_0x28f695){_0xe9b713(null,_0x28f695?_0x28f695['name']:![]);})[_0x030b('0x10')](function(_0x2a47ef){_0xe9b713(_0x2a47ef);});};AGIVertices[_0x030b('0xe')][_0x030b('0x11')]=function(_0x4f48b8,_0x2619c3){this[_0x030b('0xc')][_0x030b('0x12')](_0x4f48b8)[_0x030b('0xf')](function(_0x18496f){_0x2619c3(null,_0x18496f?_0x18496f['name']:![]);})[_0x030b('0x10')](function(_0x59b451){_0x2619c3(_0x59b451);});};AGIVertices[_0x030b('0xe')][_0x030b('0x13')]=function(_0x557576,_0x2782a1){this[_0x030b('0xc')][_0x030b('0x14')](_0x557576)[_0x030b('0xf')](function(_0x4e069f){_0x2782a1(null,_0x4e069f?_0x4e069f[_0x030b('0x15')]:![]);})['catch'](function(_0x17fd5a){_0x2782a1(_0x17fd5a);});};AGIVertices[_0x030b('0xe')][_0x030b('0x16')]=function(_0x5d2b1e,_0x4e5719){this[_0x030b('0xc')]['getSquareOdbcById'](_0x5d2b1e)[_0x030b('0xf')](function(_0x275a77){_0x4e5719(null,_0x275a77?_0x275a77[_0x030b('0x17')]:![]);})[_0x030b('0x10')](function(_0xf9f4a5){_0x4e5719(_0xf9f4a5);});};AGIVertices[_0x030b('0xe')][_0x030b('0x18')]=function(_0x4865cc,_0x51c79e){this[_0x030b('0xc')]['getUserById'](_0x4865cc)[_0x030b('0xf')](function(_0x33ae6a){_0x51c79e(null,_0x33ae6a?_0x33ae6a[_0x030b('0x15')]:![]);})[_0x030b('0x10')](function(_0x2954d0){_0x51c79e(_0x2954d0);});};AGIVertices[_0x030b('0xe')]['getTrunk']=function(_0x1d1c06,_0x2df6b9){this['rpc'][_0x030b('0x19')](_0x1d1c06)[_0x030b('0xf')](function(_0x39a64e){_0x2df6b9(null,_0x39a64e?_0x39a64e[_0x030b('0x15')]:![]);})[_0x030b('0x10')](function(_0x3d0f9a){_0x2df6b9(_0x3d0f9a);});};AGIVertices[_0x030b('0xe')]['getSound']=function(_0x19e546,_0x3e5964){var _0x4b6150=this;this[_0x030b('0xc')][_0x030b('0x1a')](_0x19e546)['then'](function(_0x2852ad){_0x3e5964(null,_0x2852ad?_0x4b6150[_0x030b('0x1b')](_0x2852ad[_0x030b('0x1c')]):![]);})[_0x030b('0x10')](function(_0x1dd0d1){_0x3e5964(_0x1dd0d1);});};AGIVertices[_0x030b('0xe')][_0x030b('0x1d')]=function(_0x3bfb3a,_0x4ed527){this[_0x030b('0xc')][_0x030b('0x1e')](_0x3bfb3a)[_0x030b('0xf')](function(_0x24fbbd){_0x4ed527(null,_0x24fbbd?_0x24fbbd:![]);})[_0x030b('0x10')](function(_0x358b84){_0x4ed527(_0x358b84);});};AGIVertices[_0x030b('0xe')]['sendMailMessage']=function(_0x37e0c7,_0x2f2c99,_0x4a7627){this[_0x030b('0xd')][_0x030b('0x1f')](_0x37e0c7,_0x2f2c99)[_0x030b('0xf')](function(){_0x4a7627(null);})['catch'](function(_0x2ae6cd){_0x4a7627(_0x2ae6cd);});};AGIVertices[_0x030b('0xe')]['getIntervals']=function(_0x5de935,_0x2443a8){this[_0x030b('0xc')][_0x030b('0x20')](_0x5de935)[_0x030b('0xf')](function(_0x2c9cab){if(_0x2c9cab){if(_0x2c9cab[_0x030b('0x21')]){_0x2443a8(null,[_0x2c9cab['interval']]);}else{_0x2443a8(null,_[_0x030b('0x22')](_0x2c9cab[_0x030b('0x23')],_0x030b('0x24')));}}else{_0x2443a8(null,![]);}})[_0x030b('0x10')](function(_0x323bc8){_0x2443a8(_0x323bc8);});};AGIVertices['prototype'][_0x030b('0x1b')]=function(_0x4aa9fa){return util[_0x030b('0x25')](_0x030b('0x26'),FILES_PATH,_0x4aa9fa);};AGIVertices[_0x030b('0xe')]['getQueryOdbc']=function(_0x1e3b1e,_0x54b299,_0x594be4){odbc[_0x030b('0x27')](_0x1e3b1e,function(_0x86e8c1){if(_0x86e8c1){logger['error'](_0x030b('0x28'),_0x86e8c1);_0x594be4(_0x86e8c1);}else{logger[_0x030b('0x29')]('ODBC\x20connection\x20successfully');odbc[_0x030b('0x2a')](_0x54b299,function(_0x16a131,_0x561136){if(_0x16a131){logger['info']('Error\x20executing\x20query\x20%s',_0x54b299);_0x594be4(_0x16a131);}else{logger['info'](_0x030b('0x2b'),_0x54b299);odbc[_0x030b('0x2c')](function(_0x32adc3){if(_0x32adc3){logger['error'](_0x030b('0x2d'),_0x32adc3);}_0x594be4(null,_0x561136);});}});}});};AGIVertices[_0x030b('0xe')][_0x030b('0x2e')]=function(_0x500f34,_0x1b3cd0){this[_0x030b('0xc')][_0x030b('0x2f')](_0x500f34)[_0x030b('0xf')](function(_0x46c49e){_0x1b3cd0(null,_0x46c49e?_0x46c49e:![]);})['catch'](function(_0x4ce0dd){_0x1b3cd0(_0x4ce0dd);});};AGIVertices['prototype'][_0x030b('0x30')]=function(_0xd8cf1e,_0xaf7e98){this['rpc'][_0x030b('0x30')](_0xd8cf1e)[_0x030b('0xf')](function(_0xa7662e){_0xaf7e98(null,_0xa7662e);})[_0x030b('0x10')](function(_0x4d8507){_0xaf7e98(_0x4d8507);});};AGIVertices[_0x030b('0xe')]['createSquareDetailsReport']=function(_0x17d315,_0x51f5bc,_0x58d364){this[_0x030b('0xc')][_0x030b('0x31')]({'uniqueid':this[_0x030b('0x32')][_0x030b('0x33')],'node':_0x17d315['label'],'application':_0x17d315[_0x030b('0x34')],'data':_0x51f5bc||null,'project_name':this[_0x030b('0x32')][_0x030b('0x35')],'callerid':this[_0x030b('0x32')][_0x030b('0x36')]})['then'](function(_0x4ed4e5){if(_0x58d364){_0x58d364(null,_0x4ed4e5);}})[_0x030b('0x10')](function(_0x1dc0f3){if(_0x58d364){_0x58d364(_0x1dc0f3);}});};AGIVertices['prototype'][_0x030b('0x37')]=function(_0x3c2945,_0x224ce5,_0xbbbff,_0x3b4ee1){this[_0x030b('0xc')][_0x030b('0x37')]({'uniqueid':this[_0x030b('0x32')][_0x030b('0x33')],'callerid':this[_0x030b('0x32')]['callerid'],'calleridname':this[_0x030b('0x32')][_0x030b('0x38')],'context':this[_0x030b('0x32')][_0x030b('0x39')],'extension':this['channel'][_0x030b('0x3a')],'priority':this[_0x030b('0x32')]['priority'],'accountcode':this[_0x030b('0x32')]['accountcode'],'dnid':this['channel'][_0x030b('0x3b')],'projectName':this[_0x030b('0x32')][_0x030b('0x35')],'saveName':_0x224ce5,'filename':_0x3c2945['file']||_0x224ce5,'savePath':_0xbbbff})[_0x030b('0xf')](function(_0x366ecd){_0x3b4ee1(null,_0x366ecd);})[_0x030b('0x10')](function(_0x434014){_0x3b4ee1(_0x434014);});};AGIVertices[_0x030b('0xe')][_0x030b('0x3c')]=function(_0xc71a3b,_0x3ba633,_0x247bc5){this[_0x030b('0xc')]['createSquareMessage']({'uniqueid':this['channel'][_0x030b('0x33')],'body':_0xc71a3b,'direction':_0x3ba633})['then'](function(_0x552a87){if(_0x247bc5){_0x247bc5(null,_0x552a87);}})[_0x030b('0x10')](function(_0x3a1852){if(_0x247bc5){_0x247bc5(_0x3a1852);}});};AGIVertices[_0x030b('0xe')]['createCmContact']=function(_0x1c53fe,_0x3ca069){this[_0x030b('0xc')][_0x030b('0x3d')]({'firstName':_['isEmpty'](_0x1c53fe['name'])||_[_0x030b('0x3e')](_0x1c53fe[_0x030b('0x15')])?_0x030b('0x3f')+Math[_0x030b('0x40')]():_0x1c53fe['name'],'lastName':_[_0x030b('0x41')](_0x1c53fe[_0x030b('0x42')])||_[_0x030b('0x3e')](_0x1c53fe['lastName'])?null:_0x1c53fe[_0x030b('0x42')],'phone':_0x1c53fe[_0x030b('0x43')],'ListId':_0x1c53fe[_0x030b('0x44')],'scheduledAt':_0x1c53fe[_0x030b('0x45')],'callbackUniqueid':this[_0x030b('0x32')]['uniqueid'],'tags':'callback','description':_0x030b('0x46')+_0x1c53fe[_0x030b('0x45')][_0x030b('0x47')](),'priority':_0x1c53fe['callback_priority']})['then'](function(_0x2b418c){_0x3ca069(null,_0x2b418c);})[_0x030b('0x10')](function(_0x1bfb2f){_0x3ca069(_0x1bfb2f);});};AGIVertices['prototype'][_0x030b('0x48')]=function(_0x132c66,_0x226844){this[_0x030b('0xc')]['getPauseById'](_0x132c66)[_0x030b('0xf')](function(_0x32dd98){_0x226844(null,_0x32dd98?_0x32dd98[_0x030b('0x15')]:![]);})['catch'](function(_0x4ee8e6){_0x226844(_0x4ee8e6);});};AGIVertices[_0x030b('0xe')][_0x030b('0x49')]=function(_0x5c6ce1,_0x13f4ae,_0xe73e46){var _0x11dd47={'role':'agent'};_0x11dd47[_0x5c6ce1]=this[_0x030b('0x32')]['callerid'];this[_0x030b('0xc')]['agentPause'](_0x11dd47,_0x13f4ae,this[_0x030b('0x32')]['uniqueid'])[_0x030b('0xf')](function(_0x10d58d){_0xe73e46(null,_['isNil'](_0x10d58d)?![]:!![]);})['catch'](function(_0x51f43e){logger[_0x030b('0x4a')](_0x51f43e);_0xe73e46(null,![]);});};AGIVertices['prototype'][_0x030b('0x4b')]=function(_0x5a1114,_0x48d088){var _0x120852={'role':_0x030b('0x4c')};_0x120852[_0x5a1114]=this[_0x030b('0x32')][_0x030b('0x36')];this['rpc'][_0x030b('0x4b')](_0x120852)['then'](function(_0x234e09){_0x48d088(null,_['isNil'](_0x234e09)?![]:!![]);})[_0x030b('0x10')](function(_0x2eb4b7){logger[_0x030b('0x4a')](_0x2eb4b7);_0x48d088(null,![]);});};AGIVertices[_0x030b('0xe')][_0x030b('0x4d')]=function(_0x2050f7,_0x223fb4){var _0x581cd5={'role':_0x030b('0x4c')};_0x581cd5[_0x2050f7]=this[_0x030b('0x32')]['callerid'];this[_0x030b('0xc')][_0x030b('0x4d')](_0x581cd5)[_0x030b('0xf')](function(_0x192d78){_0x223fb4(null,_['isNil'](_0x192d78)?![]:!![]);})[_0x030b('0x10')](function(_0x34a0a4){logger[_0x030b('0x4a')](_0x34a0a4);_0x223fb4(null,![]);});};AGIVertices['prototype'][_0x030b('0x4e')]=function(_0x54155c,_0x336f1f){var _0x1b4027={'role':_0x030b('0x4c')};_0x1b4027[_0x54155c]=this[_0x030b('0x32')][_0x030b('0x36')];var _0x380de3=_0x54155c!=_0x030b('0x4f')?util['format'](_0x030b('0x50'),_0x030b('0x51'),this[_0x030b('0x32')][_0x030b('0x36')]):undefined;this[_0x030b('0xc')][_0x030b('0x4e')](_0x1b4027,_0x380de3)[_0x030b('0xf')](function(_0x437a0e){_0x336f1f(null,_[_0x030b('0x3e')](_0x437a0e)?![]:!![]);})[_0x030b('0x10')](function(_0x37161a){logger['error'](_0x37161a);_0x336f1f(null,![]);});};AGIVertices[_0x030b('0xe')][_0x030b('0x52')]=function(_0x10412e,_0xc9a0ae){sh[_0x030b('0x53')](_['trim'](_0x10412e),function(_0x5aa6a2,_0x265611){var _0x4dd106=_0x265611[_0x030b('0x54')](/(\r\n|\n|\r)/gm,'');_0xc9a0ae(null,_0x4dd106);});};AGIVertices[_0x030b('0xe')][_0x030b('0x55')]=function(_0x3f943b,_0x17ad67){scripts[_0x030b('0x55')](_0x3f943b[_0x030b('0x56')],_0x3f943b[_0x030b('0x57')]||'en',0x1)[_0x030b('0xf')](function(_0x508c5a){_0x17ad67(null,_0x508c5a);})['catch'](function(_0x134427){_0x17ad67(_0x134427);});};AGIVertices['prototype'][_0x030b('0x58')]=function(_0x17f979,_0x3971d2){scripts['googleDialogflow'](this[_0x030b('0x32')][_0x030b('0x33')],_0x17f979[_0x030b('0x59')],_0x17f979[_0x030b('0x56')],_0x17f979[_0x030b('0x5a')]||'en')[_0x030b('0xf')](function(_0x42c9ee){_0x3971d2(null,_0x42c9ee);})['catch'](function(_0x224a26){_0x3971d2(_0x224a26);});};AGIVertices[_0x030b('0xe')][_0x030b('0x5b')]=function(_0x38572c,_0x490825){scripts['sestekNDA'](this[_0x030b('0x32')],_0x38572c)[_0x030b('0xf')](function(_0x2970ef){_0x490825(null,_0x2970ef);})['catch'](function(_0x55c608){_0x490825(_0x55c608);});};AGIVertices[_0x030b('0xe')][_0x030b('0x5c')]=function(_0x111824,_0x49886e){scripts['ispeechTTS'](_0x111824[_0x030b('0x59')],_0x111824[_0x030b('0x56')],_0x111824[_0x030b('0x5d')]||_0x030b('0x5e'),_0x111824[_0x030b('0x5f')])[_0x030b('0xf')](function(_0x31ba01){_0x49886e(null,_0x31ba01);})[_0x030b('0x10')](function(_0xbd372d){_0x49886e(_0xbd372d);});};AGIVertices[_0x030b('0xe')]['ispeechASR']=function(_0x3a6d5c,_0x4b55e2,_0x352c21){scripts[_0x030b('0x60')](_0x4b55e2,_0x3a6d5c[_0x030b('0x59')],_0x3a6d5c[_0x030b('0x61')]||_0x030b('0x5e'),this['isConfigured'](_0x3a6d5c[_0x030b('0x62')])?_0x3a6d5c[_0x030b('0x62')]:undefined)['then'](function(_0x614965){_0x352c21(null,_0x614965);})[_0x030b('0x10')](function(_0x5586d1){_0x352c21(_0x5586d1);});};AGIVertices[_0x030b('0xe')]['awsPolly']=function(_0x5bb6cc,_0x2815aa){scripts[_0x030b('0x63')](_0x5bb6cc['aws_access_key_id'],_0x5bb6cc[_0x030b('0x64')],_0x5bb6cc[_0x030b('0x65')],_0x5bb6cc[_0x030b('0x66')]||_0x030b('0x67'),_0x5bb6cc[_0x030b('0x56')],_0x5bb6cc[_0x030b('0x68')]||_0x030b('0x56'))['then'](function(_0x38c82d){_0x2815aa(null,_0x38c82d);})[_0x030b('0x10')](function(_0x55b308){_0x2815aa(_0x55b308);});};AGIVertices[_0x030b('0xe')][_0x030b('0x69')]=function(_0x3e634c,_0x59bdbc){scripts[_0x030b('0x69')](this['channel'][_0x030b('0x33')],_0x3e634c['aws_access_key_id'],_0x3e634c['aws_secret_access_key'],_0x3e634c['aws_lex_region'],_0x3e634c[_0x030b('0x56')],_0x3e634c[_0x030b('0x6a')])[_0x030b('0xf')](function(_0x680a7e){_0x59bdbc(null,_0x680a7e);})[_0x030b('0x10')](function(_0x5ed736){_0x59bdbc(_0x5ed736);});};AGIVertices['prototype'][_0x030b('0x6b')]=function(_0x48d3a0,_0x215fc2,_0x1de6d0){scripts[_0x030b('0x6b')](_0x215fc2,_0x48d3a0[_0x030b('0x59')],_0x48d3a0[_0x030b('0x6c')]||'en-US')[_0x030b('0xf')](function(_0x2be747){_0x1de6d0(null,_0x2be747);})[_0x030b('0x10')](function(_0x494167){_0x1de6d0(_0x494167);});};AGIVertices['prototype'][_0x030b('0x6d')]=function(_0x4698f0,_0x5b7ea2,_0x333809){scripts[_0x030b('0x6d')](_0x5b7ea2,_0x4698f0[_0x030b('0x6e')],_0x4698f0['appsecret'],_0x4698f0[_0x030b('0x6f')])['then'](function(_0x2bbfbc){_0x333809(null,_0x2bbfbc);})['catch'](function(_0x290dd9){_0x333809(_0x290dd9);});};AGIVertices[_0x030b('0xe')]['clear']=function(_0x161be3){var _0x6e03af=_[_0x030b('0x70')](verticesWithRetry,_0x161be3['agicommand'])?_0x161be3:_[_0x030b('0x71')](_0x161be3);for(var _0x4517ec in _0x6e03af){if(_0x6e03af['hasOwnProperty'](_0x4517ec)){if(_0x6e03af[_0x4517ec]&&_[_0x030b('0x72')](_0x6e03af[_0x4517ec])){_0x6e03af[_0x4517ec]=this['replaceAllVariables'](_0x6e03af[_0x4517ec]);}}}return _0x6e03af;};AGIVertices[_0x030b('0xe')]['replaceAllVariables']=function(_0x4fc508){var _0x3cf62a=_0x4fc508[_0x030b('0x73')]('{');for(var _0x5430a8=0x1;_0x5430a8<_0x3cf62a[_0x030b('0x74')];_0x5430a8+=0x1){var _0x1d57af=_0x3cf62a[_0x5430a8][_0x030b('0x73')]('}');if(_0x1d57af[_0x030b('0x74')]>0x1){_0x4fc508=_0x4fc508[_0x030b('0x75')]('{'+_0x1d57af[0x0]+'}',this[_0x030b('0x32')][_0x030b('0x76')](_0x1d57af[0x0])['extra']||_0x1d57af[0x0]);}}if(_0x3cf62a[_0x030b('0x74')]===0x1){return _0x4fc508['toString']();}return this[_0x030b('0x77')](_0x4fc508);};AGIVertices[_0x030b('0xe')][_0x030b('0x78')]=function(_0x42a8a8,_0x394d2f){var _0x1f2b91=this[_0x030b('0x32')]['getVariable'](_0x42a8a8);if(_0x1f2b91['result']===-0x1){return _0x1f2b91;}logger[_0x030b('0x29')](util['format'](_0x030b('0x79'),_0x394d2f,_0x1f2b91[_0x030b('0x7a')]));return this['channel']['setVariable'](_0x394d2f,_0x1f2b91[_0x030b('0x7a')]);};AGIVertices[_0x030b('0xe')][_0x030b('0x7b')]=function(_0x499fcf){return _0x499fcf&&_0x499fcf!=='0'&&_0x499fcf!=='-1'&&_0x499fcf!=='';};AGIVertices[_0x030b('0xe')][_0x030b('0x7c')]=function(_0x1dc13a){this['createSquareDetailsReport'][_0x030b('0x7d')](this,_0x1dc13a,'-');_0x1dc13a[_0x030b('0x7e')]=_0x1dc13a['maxRetry'];return{'code':0xc8,'result':'-'};};AGIVertices[_0x030b('0xe')]['agi']=function(_0x12e461){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x7f'),_0x12e461[_0x030b('0x80')]));return this[_0x030b('0x32')]['agi']([_0x12e461[_0x030b('0x81')],_0x12e461[_0x030b('0x82')]]);};AGIVertices[_0x030b('0xe')][_0x030b('0x83')]=function(_0x21d5f8){logger[_0x030b('0x29')](util[_0x030b('0x25')]('Enter\x20in\x20ANSWER\x20(%s)\x20block',_0x21d5f8['label']));if(this['isConfigured'](_0x21d5f8[_0x030b('0x84')])){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x85'),_0x21d5f8[_0x030b('0x84')]));var _0x38f7b8=this[_0x030b('0x32')][_0x030b('0x86')](_0x21d5f8[_0x030b('0x84')]);if(_0x38f7b8['result']===-0x1){return _0x38f7b8;}}return this['channel']['answer']();};AGIVertices['prototype'][_0x030b('0x87')]=function(_0x40fdb0){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x88'),_0x40fdb0[_0x030b('0x80')]));if(!this[_0x030b('0x7b')](_0x40fdb0[_0x030b('0x44')])){return this['channel'][_0x030b('0x4a')](_0x40fdb0,'no\x20list\x20selected');}_0x40fdb0[_0x030b('0x45')]=moment();if(this[_0x030b('0x7b')](_0x40fdb0[_0x030b('0x89')])){_0x40fdb0[_0x030b('0x45')]=moment()[_0x030b('0x8a')](_0x40fdb0[_0x030b('0x89')],_0x030b('0x8b'));}if(!this[_0x030b('0x7b')](_0x40fdb0[_0x030b('0x8c')])){_0x40fdb0[_0x030b('0x8c')]=0x2;}this[_0x030b('0x3d')]['sync'](this,_0x40fdb0);return this['channel'][_0x030b('0x8d')](util[_0x030b('0x25')]('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0x40fdb0['phone'],_0x40fdb0[_0x030b('0x44')],_0x40fdb0[_0x030b('0x45')]));};AGIVertices[_0x030b('0xe')]['custom_app']=function(_0x36633b){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x8e'),_0x36633b[_0x030b('0x80')]));var _0x1a4e71=this['channel'][_0x030b('0x53')](_0x36633b[_0x030b('0x8f')],_0x36633b[_0x030b('0x90')]);if(_0x1a4e71[_0x030b('0x91')]===-0x1){return _0x1a4e71;}return this[_0x030b('0x32')]['noop'](util['format'](_0x030b('0x92'),_0x36633b[_0x030b('0x8f')],_0x36633b[_0x030b('0x90')]));};AGIVertices[_0x030b('0xe')][_0x030b('0x93')]=function(_0x3257a9){logger[_0x030b('0x29')](util[_0x030b('0x25')]('Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block',_0x3257a9[_0x030b('0x80')]));if(!this[_0x030b('0x7b')](_0x3257a9[_0x030b('0x56')])){return this[_0x030b('0x32')][_0x030b('0x8d')]('no\x20text\x20configured');}var _0x1caf0f='\x22'+_0x3257a9['text']+'\x22';if(this[_0x030b('0x7b')](_0x3257a9[_0x030b('0x90')])){_0x1caf0f+=','+_0x3257a9['options'];}var _0x40ed52=this[_0x030b('0x32')]['exec']('MRCPSynth',_0x1caf0f);if(_0x40ed52[_0x030b('0x91')]===-0x1){return _0x40ed52;}return this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')]('Executed\x20command\x20MRCPSynth\x20%s',_0x1caf0f));};AGIVertices[_0x030b('0xe')][_0x030b('0x94')]=function(_0x3793dc){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x95'),_0x3793dc['label']));if(!this[_0x030b('0x7b')](_0x3793dc[_0x030b('0x56')])){return this[_0x030b('0x32')][_0x030b('0x8d')](_0x030b('0x96'));}var _0x2c7019='\x22'+_0x3793dc['text']+'\x22';if(this[_0x030b('0x7b')](_0x3793dc[_0x030b('0x90')])){_0x2c7019+=','+_0x3793dc[_0x030b('0x90')];}var _0x3cc56e=this['channel'][_0x030b('0x53')]('MRCPSynth',_0x2c7019);if(_0x3cc56e[_0x030b('0x91')]===-0x1){return _0x3cc56e;}return this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0x97'),_0x2c7019));};AGIVertices['prototype'][_0x030b('0x98')]=function(_0x523b7b){logger[_0x030b('0x29')](util['format'](_0x030b('0x99'),_0x523b7b[_0x030b('0x80')]));if(!this[_0x030b('0x7b')](_0x523b7b[_0x030b('0x9a')])){return this[_0x030b('0x32')][_0x030b('0x8d')](_0x030b('0x9b'));}var _0x5bee86=_0x523b7b[_0x030b('0x9a')];if(this['isConfigured'](_0x523b7b[_0x030b('0x90')])){_0x5bee86+=','+_0x523b7b[_0x030b('0x90')];}var _0x2deb69=this[_0x030b('0x32')][_0x030b('0x53')](_0x030b('0x9c'),_0x5bee86);if(_0x2deb69[_0x030b('0x91')]===-0x1){return _0x2deb69;}var _0x10a2fe=this[_0x030b('0x78')](_0x030b('0x9d'),_0x030b('0x9e'));if(_0x10a2fe['result']===-0x1){return _0x10a2fe;}var _0x4db598=this['getAndSetVariable'](_0x030b('0x9f'),_0x030b('0xa0'));if(_0x4db598[_0x030b('0x91')]===-0x1){return _0x4db598;}var _0x3fa78d=this[_0x030b('0x78')](_0x030b('0xa1'),'LUMENVOX_ASR_INSTANCE');if(_0x3fa78d[_0x030b('0x91')]===-0x1){return _0x3fa78d;}return this['channel'][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0xa2'),_0x5bee86));};AGIVertices[_0x030b('0xe')][_0x030b('0xa3')]=function(_0x1bb28c){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0xa4'),_0x1bb28c['label']));if(!this[_0x030b('0x7b')](_0x1bb28c[_0x030b('0x9a')])){return this[_0x030b('0x32')][_0x030b('0x8d')]('no\x20grammar\x20configured');}var _0x15e509=_0x1bb28c[_0x030b('0x9a')];if(this[_0x030b('0x7b')](_0x1bb28c['options'])){_0x15e509+=','+_0x1bb28c[_0x030b('0x90')];}var _0x233c6c=this['channel'][_0x030b('0x53')](_0x030b('0x9c'),_0x15e509);if(_0x233c6c[_0x030b('0x91')]===-0x1){return _0x233c6c;}var _0x194194=this['getAndSetVariable']('RECOG_CONFIDENCE()',_0x030b('0xa5'));if(_0x194194[_0x030b('0x91')]===-0x1){return _0x194194;}var _0x482dd9=this[_0x030b('0x78')](_0x030b('0x9f'),_0x030b('0xa6'));if(_0x482dd9[_0x030b('0x91')]===-0x1){return _0x482dd9;}var _0x3de7c2=this['getAndSetVariable'](_0x030b('0xa1'),'SESTEK_ASR_INSTANCE');if(_0x3de7c2[_0x030b('0x91')]===-0x1){return _0x3de7c2;}return this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')]('Executed\x20command\x20MRCPRecog\x20%s',_0x15e509));};AGIVertices['prototype'][_0x030b('0xa7')]=function(_0x20a71d){logger[_0x030b('0x29')](util['format'](_0x030b('0xa8'),_0x20a71d[_0x030b('0x80')]));if(!this[_0x030b('0x7b')](_0x20a71d[_0x030b('0xa9')])){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x20a71d,_0x030b('0xaa'));}var _0x5aa4fa=this[_0x030b('0x16')]['sync'](this,_0x20a71d['odbc_id']);if(!_0x5aa4fa){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x20a71d,_0x030b('0xab'));}if(!this[_0x030b('0x7b')](_0x20a71d['query'])){return this[_0x030b('0x32')]['error'](_0x20a71d,_0x030b('0xac'));}var _0x47eed1=_0x20a71d[_0x030b('0x2a')][_0x030b('0x54')](/(\r\n|\n|\r)/gm,'\x20');this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0xad'),_0x47eed1));var _0x2c79c9=this[_0x030b('0xae')]['sync'](this,_0x5aa4fa,_0x47eed1);this[_0x030b('0x31')][_0x030b('0x7d')](this,_0x20a71d,_0x47eed1);if(!this[_0x030b('0x7b')](_0x20a71d[_0x030b('0xaf')])){return this[_0x030b('0x32')][_0x030b('0x8d')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x4a332b=this['getVariable'][_0x030b('0x7d')](this,_0x20a71d[_0x030b('0xaf')]);if(!_0x4a332b){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x20a71d,_0x030b('0xb0'));}var _0x44e40b=this;_0x2c79c9[_0x030b('0xb1')](function(_0x261296,_0x43790a){Object[_0x030b('0xb2')](_0x261296)[_0x030b('0xb1')](function(_0x458940){_0x44e40b[_0x030b('0x32')][_0x030b('0xb3')](util[_0x030b('0x25')](_0x030b('0xb4'),_0x4a332b,_0x43790a,_0x458940),_0x261296[_0x458940]);});});this[_0x030b('0x32')]['setVariable'](util[_0x030b('0x25')](_0x030b('0xb5'),_0x4a332b),_0x2c79c9[_0x030b('0x74')]);return this['channel'][_0x030b('0x8d')](util[_0x030b('0x25')]('variable\x20%s\x20set',_0x4a332b));};AGIVertices['prototype'][_0x030b('0xb6')]=function(_0x2fd524){logger['debug'](util[_0x030b('0x25')]('Enter\x20in\x20DIAL\x20(%s)\x20block',_0x2fd524[_0x030b('0x80')]));if(!this[_0x030b('0x7b')](_0x2fd524[_0x030b('0xb7')])){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x2fd524,_0x030b('0xb8'));}var _0x249f3d=this['getUser'][_0x030b('0x7d')](this,_0x2fd524['sip_id']);if(!_0x249f3d){return this['channel'][_0x030b('0x4a')](_0x2fd524,_0x030b('0xb9'));}var _0xa1e941=this[_0x030b('0x32')][_0x030b('0x53')](_0x030b('0xba'),[util['format'](_0x030b('0xbb'),_0x249f3d),_0x2fd524[_0x030b('0x84')],_0x2fd524['opts'],_0x2fd524[_0x030b('0xbc')]]);if(_0xa1e941[_0x030b('0x91')]===-0x1){return _0xa1e941;}return this[_0x030b('0x32')][_0x030b('0x8d')](util['format'](_0x030b('0xbd'),_0x030b('0xba')));};AGIVertices['prototype'][_0x030b('0xbe')]=function(_0x27e8f9){logger[_0x030b('0x29')](util['format'](_0x030b('0xbf'),_0x27e8f9[_0x030b('0x80')]));if(!this[_0x030b('0x7b')](_0x27e8f9[_0x030b('0x59')])){return this[_0x030b('0x32')][_0x030b('0x8d')](_0x030b('0xc0'));}if(!this[_0x030b('0x7b')](_0x27e8f9[_0x030b('0x56')])){return this[_0x030b('0x32')][_0x030b('0x8d')]('no\x20text\x20configured');}this[_0x030b('0x32')][_0x030b('0xc1')]=!![];this[_0x030b('0x31')](_0x27e8f9);this[_0x030b('0x3c')](_0x27e8f9['text'],'in');this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')]('Trying\x20Dialogflow:\x20%s',_0x27e8f9[_0x030b('0x56')]));var _0x80333c=this[_0x030b('0x58')]['sync'](this,_0x27e8f9);if(_0x80333c){for(var _0x3bc012 in _0x80333c){if(_0x80333c['hasOwnProperty'](_0x3bc012)){this[_0x030b('0x32')][_0x030b('0xb3')](util[_0x030b('0x25')](_0x030b('0xc2'),_0x3bc012[_0x030b('0xc3')]()),_0x80333c[_0x3bc012]);}}this['createSquareMessage'](_0x80333c[_0x030b('0xc4')],_0x030b('0xc5'));return this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')]('Dialogflow\x20Result\x20%s',_0x80333c[_0x030b('0xc4')]));}return this[_0x030b('0x32')][_0x030b('0x4a')](_0x27e8f9,'Dialogflow\x20is\x20unreachable');};AGIVertices[_0x030b('0xe')][_0x030b('0xc6')]=function(_0x1bd2bb){logger['info'](util[_0x030b('0x25')](_0x030b('0xc7'),_0x1bd2bb['label']));if(!this[_0x030b('0x7b')](_0x1bd2bb[_0x030b('0xc8')])){return this['channel'][_0x030b('0x8d')](_0x030b('0xc9'));}if(!this[_0x030b('0x7b')](_0x1bd2bb[_0x030b('0xca')])){return this[_0x030b('0x32')][_0x030b('0x8d')](_0x030b('0xcb'));}if(!this[_0x030b('0x7b')](_0x1bd2bb[_0x030b('0xcc')])){return this[_0x030b('0x32')]['noop'](_0x030b('0xcd'));}if(!this[_0x030b('0x7b')](_0x1bd2bb[_0x030b('0xce')])){return this[_0x030b('0x32')][_0x030b('0x8d')](_0x030b('0x96'));}this[_0x030b('0x32')][_0x030b('0xc1')]=!![];this['createSquareDetailsReport'](_0x1bd2bb);this[_0x030b('0x3c')](_0x1bd2bb[_0x030b('0x56')],'in');this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')]('Trying\x20SestekNDA:\x20%s',_0x1bd2bb['text']));var _0x48a39d=this[_0x030b('0x5b')][_0x030b('0x7d')](this,_0x1bd2bb);if(_0x48a39d){for(var _0x4c1ffe in _0x48a39d){if(_0x48a39d[_0x030b('0xcf')](_0x4c1ffe)){this[_0x030b('0x32')][_0x030b('0xb3')](util[_0x030b('0x25')]('SESTEK_NDA_%s',_0x4c1ffe[_0x030b('0xc3')]()),_0x48a39d[_0x4c1ffe]);}}this[_0x030b('0x3c')](_0x48a39d['speech'],'out');if(_0x48a39d['audiofile']){this['channel']['noop'](util['format'](_0x030b('0xd0'),_0x48a39d['audiofile']));var _0xac878a=this['channel'][_0x030b('0xd1')](_0x48a39d[_0x030b('0xd2')]);try{fs[_0x030b('0xd3')](_0x48a39d[_0x030b('0xd2')]+_0x030b('0xd4'));}catch(_0x2f14a0){logger[_0x030b('0x4a')](_0x2f14a0);}return _0xac878a;}else{return this[_0x030b('0x32')][_0x030b('0x8d')](util['format'](_0x030b('0xd5'),_0x48a39d[_0x030b('0xc4')]));}}return this[_0x030b('0x32')][_0x030b('0x4a')](_0x1bd2bb,'SestekNDA\x20is\x20unreachable');};AGIVertices[_0x030b('0xe')][_0x030b('0xd6')]=function(_0x50b614){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0xd7'),_0x50b614[_0x030b('0x80')]));return this[_0x030b('0x32')][_0x030b('0x8d')](_0x030b('0xd6'));};AGIVertices[_0x030b('0xe')]['ext_dial']=function(_0x2c1a89){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0xd8'),_0x2c1a89[_0x030b('0x80')]));var _0x3e8a2c='';if(_0x2c1a89[_0x030b('0xd9')]){if(!this[_0x030b('0x7b')](_0x2c1a89[_0x030b('0xd9')])){return this[_0x030b('0x32')]['error'](_0x2c1a89,_0x030b('0xda'));}else{var _0x42ac76=parseInt(_0x2c1a89[_0x030b('0xd9')],0xa);if(isNaN(_0x42ac76)){_0x3e8a2c=_0x2c1a89[_0x030b('0xd9')];}else{_0x3e8a2c=this['getTrunk'][_0x030b('0x7d')](this,_0x2c1a89[_0x030b('0xd9')]);if(!_0x3e8a2c){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x2c1a89,_0x030b('0xdb'));}}}}else if(_0x2c1a89[_0x030b('0xdc')]){_0x3e8a2c=_0x2c1a89[_0x030b('0xdc')];}else{return this['channel']['error'](_0x2c1a89,'no\x20trunk\x20selected');}var _0x116a19=this[_0x030b('0x32')]['exec'](_0x030b('0xba'),[util[_0x030b('0x25')](_0x030b('0xdd'),_0x3e8a2c,_0x2c1a89[_0x030b('0x43')]),_0x2c1a89['timeout'],_0x2c1a89[_0x030b('0xde')],_0x2c1a89[_0x030b('0xbc')]]);if(_0x116a19['result']===-0x1){return _0x116a19;}return this['channel'][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0xbd'),_0x030b('0xba')));};AGIVertices[_0x030b('0xe')][_0x030b('0xdf')]=function(_0x5450f2){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0xe0'),_0x5450f2['label']));return this[_0x030b('0x32')]['noop']('finally');};AGIVertices[_0x030b('0xe')][_0x030b('0xb')]=function(_0x4c8345){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0xe1'),_0x4c8345[_0x030b('0x80')]));if(_0x4c8345[_0x030b('0x7e')]===0x0){return this['maxRetry'](_0x4c8345);}_0x4c8345[_0x030b('0x7e')]-=0x1;if(!this[_0x030b('0x7b')](_0x4c8345[_0x030b('0xe2')])){return this['channel'][_0x030b('0x4a')](_0x4c8345,_0x030b('0xe3'));}var _0x37c143=this[_0x030b('0xe4')][_0x030b('0x7d')](this,_0x4c8345[_0x030b('0xe2')]);if(!_0x37c143){return this[_0x030b('0x32')]['error'](_0x4c8345,_0x030b('0xe5'));}if(!this['isConfigured'](_0x4c8345[_0x030b('0xaf')])){return this[_0x030b('0x32')]['error']('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x240193=this[_0x030b('0x32')]['getData'](_0x37c143,_0x4c8345[_0x030b('0xe6')],_0x4c8345[_0x030b('0xe7')]);var _0xd2a8d5=_0x240193[_0x030b('0x91')]?_0x240193[_0x030b('0x91')]['toString']():'';logger['info'](_0x030b('0xe8'),JSON[_0x030b('0xe9')](_0x240193));if(_0x240193[_0x030b('0x91')]===-0x1){this[_0x030b('0x31')]['sync'](this,_0x4c8345,_0xd2a8d5);return _0x240193;}else if(_0x240193[_0x030b('0x7a')]===_0x030b('0x84')){_0x240193[_0x030b('0x91')]=_0xd2a8d5['length']>=parseInt(_0x4c8345['mindigit'])?'x':'i';}else{_0x240193[_0x030b('0x91')]=_0xd2a8d5[_0x030b('0x74')]>=parseInt(_0x4c8345[_0x030b('0xea')])&&_0xd2a8d5[_0x030b('0x74')]<=parseInt(_0x4c8345[_0x030b('0xe7')])?'x':'i';}var _0x28bfa1=this[_0x030b('0x76')][_0x030b('0x7d')](this,_0x4c8345['variable_id']);if(!_0x28bfa1){return this['channel'][_0x030b('0x4a')](_0x4c8345,_0x030b('0xb0'));}this[_0x030b('0x32')][_0x030b('0xb3')](_0x28bfa1,_0xd2a8d5);if(this[_0x030b('0x7b')](_0x4c8345['hiddendigitsnum'])){var _0x118eee=parseInt(_0x4c8345[_0x030b('0xeb')],0xa);var _0x159c60=rs[_0x030b('0xec')]({'charset':'*','length':_0x118eee});var _0x3327c2=_0xd2a8d5[_0x030b('0x74')];if(_0x3327c2>0x0){if(_0x3327c2>_0x118eee){this['createSquareDetailsReport'][_0x030b('0x7d')](this,_0x4c8345,_0x4c8345[_0x030b('0xed')]==='first'?_0x159c60+_0xd2a8d5['substr'](_0x118eee):_0xd2a8d5[_0x030b('0xee')](0x0,_0x3327c2-_0x118eee)+_0x159c60);}else{this[_0x030b('0x31')]['sync'](this,_0x4c8345,rs[_0x030b('0xec')]({'charset':'*','length':_0x3327c2}));}}else{this[_0x030b('0x31')][_0x030b('0x7d')](this,_0x4c8345,'');}}else{this[_0x030b('0x31')][_0x030b('0x7d')](this,_0x4c8345,_0xd2a8d5);}return _0x240193;};AGIVertices[_0x030b('0xe')][_0x030b('0xef')]=function(_0x1dd0ff){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0xf0'),_0x1dd0ff[_0x030b('0x80')]));return this[_0x030b('0xb')](_0x1dd0ff);};AGIVertices[_0x030b('0xe')][_0x030b('0xf1')]=function(_0x145753){logger[_0x030b('0x29')](util[_0x030b('0x25')]('Enter\x20in\x20GOAL\x20(%s)\x20block',_0x145753[_0x030b('0x80')]));this['createSquareDetailsReport'][_0x030b('0x7d')](this,_0x145753,_0x145753[_0x030b('0xf2')]);return this['channel'][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0xf3'),_0x145753[_0x030b('0xf2')]));};AGIVertices[_0x030b('0xe')]['awspolly']=function(_0x3b6b58){logger[_0x030b('0x29')](util[_0x030b('0x25')]('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0x3b6b58['label']));if(!this[_0x030b('0x7b')](_0x3b6b58[_0x030b('0xf4')])||!this[_0x030b('0x7b')](_0x3b6b58['aws_secret_access_key'])){return this[_0x030b('0x32')][_0x030b('0x8d')]('no\x20valid\x20credentials\x20configured');}if(!this['isConfigured'](_0x3b6b58[_0x030b('0x56')])){return this[_0x030b('0x32')][_0x030b('0x8d')]('no\x20text\x20configured');}this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0xf5'),_0x3b6b58[_0x030b('0x56')]));var _0x4703bd=this[_0x030b('0x63')][_0x030b('0x7d')](this,_0x3b6b58);if(_0x4703bd){this[_0x030b('0x32')]['noop'](util[_0x030b('0x25')]('aws\x20Polly\x20%s\x20file\x20created',_0x4703bd));var _0x26827e=this[_0x030b('0x32')][_0x030b('0xd1')](_0x4703bd);try{fs[_0x030b('0xd3')](_0x4703bd+_0x030b('0xd4'));}catch(_0x2ad2f0){logger[_0x030b('0x4a')](_0x2ad2f0);}return _0x26827e;}return this[_0x030b('0x32')]['error'](_0x3b6b58,_0x030b('0xf6'));};AGIVertices['prototype']['awslex']=function(_0x5d5bcf){logger[_0x030b('0x29')](util[_0x030b('0x25')]('Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block',_0x5d5bcf[_0x030b('0x80')]));if(!this['isConfigured'](_0x5d5bcf[_0x030b('0xf4')])||!this[_0x030b('0x7b')](_0x5d5bcf[_0x030b('0x64')])){return this[_0x030b('0x32')]['noop'](_0x030b('0xf7'));}if(!this[_0x030b('0x7b')](_0x5d5bcf[_0x030b('0x6a')])){return this['channel'][_0x030b('0x8d')](_0x030b('0xf8'));}if(!this[_0x030b('0x7b')](_0x5d5bcf[_0x030b('0x56')])){return this[_0x030b('0x32')][_0x030b('0x8d')](_0x030b('0x96'));}this[_0x030b('0x32')]['bot']=!![];this[_0x030b('0x31')](_0x5d5bcf);this[_0x030b('0x3c')](_0x5d5bcf[_0x030b('0x56')],'in');this[_0x030b('0x32')][_0x030b('0x8d')](util['format'](_0x030b('0xf9'),_0x5d5bcf[_0x030b('0x56')]));var _0xa6c871=this['awsLex']['sync'](this,_0x5d5bcf);if(_0xa6c871){for(var _0x81c435 in _0xa6c871){if(_0xa6c871[_0x030b('0xcf')](_0x81c435)&&_[_0x030b('0x72')](_0xa6c871[_0x81c435])){this['channel'][_0x030b('0xb3')](util[_0x030b('0x25')](_0x030b('0xfa'),_0x81c435[_0x030b('0xc3')]()),_0xa6c871[_0x81c435]);}}if(_[_0x030b('0x3e')](_0xa6c871[_0x030b('0xfb')])){return this[_0x030b('0x32')]['noop']('Amazon\x20Lex\x20ready\x20for\x20fulfillment');}else{this['createSquareMessage'](_0xa6c871[_0x030b('0xfb')],_0x030b('0xc5'));return this[_0x030b('0x32')][_0x030b('0x8d')](util['format']('Amazon\x20Lex\x20Result\x20%s',_0xa6c871['message']));}}return this[_0x030b('0x32')][_0x030b('0x4a')](_0x5d5bcf,'Amazon\x20Lex\x20is\x20unreachable');};AGIVertices[_0x030b('0xe')][_0x030b('0xfc')]=function(_0x131ffd){logger['info'](util[_0x030b('0x25')](_0x030b('0xfd'),_0x131ffd[_0x030b('0x80')],_0x131ffd['timeout']));if(!this[_0x030b('0x7b')](_0x131ffd[_0x030b('0x59')])){return this[_0x030b('0x32')][_0x030b('0x8d')](_0x030b('0xc0'));}var _0x2f5ea9=_0x030b('0xfe');var _0x206195=util[_0x030b('0x25')](_0x030b('0xff'),FILES_PATH,rs[_0x030b('0xec')](0x4));var _0xc8982f=util[_0x030b('0x25')](_0x030b('0x100'),_0x206195,_0x2f5ea9);var _0x33eef7=!![];if(_0x131ffd[_0x030b('0x101')]==='NOBEEP'){_0x33eef7=![];}var _0x10c3b5=this['channel']['recordFile'](_0x206195,_0x2f5ea9,_0x131ffd['intKey'],_0x131ffd[_0x030b('0x84')],undefined,_0x33eef7);if(_0x10c3b5[_0x030b('0x91')]!==-0x1){this['channel'][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0x102'),_0xc8982f));var _0x2c6384=this['googleASR']['sync'](this,_0x131ffd,_0xc8982f);if(_0x2c6384){for(var _0x10c625 in _0x2c6384){if(_0x2c6384[_0x030b('0xcf')](_0x10c625)){this[_0x030b('0x32')][_0x030b('0xb3')](util[_0x030b('0x25')](_0x030b('0x103'),_0x10c625['toUpperCase']()),_0x2c6384[_0x10c625]);}}return this['channel']['noop'](util['format'](_0x030b('0x104'),JSON['stringify'](_0x2c6384)));}}return _0x10c3b5;};AGIVertices[_0x030b('0xe')]['tildeasr']=function(_0x433b18){logger[_0x030b('0x29')](util['format']('Enter\x20in\x20TILDEASR\x20(%s)\x20block',_0x433b18[_0x030b('0x80')]));if(!this['isConfigured'](_0x433b18['appid'])){return this[_0x030b('0x32')][_0x030b('0x8d')](_0x030b('0x105'));}if(!this[_0x030b('0x7b')](_0x433b18['appsecret'])){return this[_0x030b('0x32')][_0x030b('0x8d')](_0x030b('0x106'));}var _0xdb9d4=_0x030b('0xfe');var _0x32fdbc=util[_0x030b('0x25')](_0x030b('0xff'),FILES_PATH,rs['generate'](0x4));var _0x3848a4=util['format'](_0x030b('0x100'),_0x32fdbc,_0xdb9d4);var _0x22afb7=!![];if(_0x433b18['beep']===_0x030b('0x107')){_0x22afb7=![];}var _0x11cb04=this['channel'][_0x030b('0x108')](_0x32fdbc,_0xdb9d4,_0x433b18[_0x030b('0x109')],_0x433b18[_0x030b('0x84')],undefined,_0x22afb7);if(_0x11cb04[_0x030b('0x91')]!==-0x1){this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0x10a'),_0x3848a4));var _0x348185=this[_0x030b('0x6d')][_0x030b('0x7d')](this,_0x433b18,_0x3848a4);if(_0x348185){for(var _0x8c7a95 in _0x348185){if(_0x348185['hasOwnProperty'](_0x8c7a95)){this[_0x030b('0x32')][_0x030b('0xb3')](util['format'](_0x030b('0x10b'),_0x8c7a95['toUpperCase']()),_0x348185[_0x8c7a95]);}}return this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0x10c'),JSON[_0x030b('0xe9')](_0x348185)));}}return _0x11cb04;};AGIVertices[_0x030b('0xe')][_0x030b('0x10d')]=function(_0x3d7651){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x10e'),_0x3d7651[_0x030b('0x80')]));return this['channel']['continueAt'](_0x3d7651['context'],_0x3d7651[_0x030b('0x3a')],_0x3d7651[_0x030b('0x10f')]);};AGIVertices[_0x030b('0xe')]['gotoif']=function(_0x4365e5){logger[_0x030b('0x29')](util[_0x030b('0x25')]('Enter\x20in\x20GOTOIF\x20(%s)\x20block',_0x4365e5[_0x030b('0x80')]));if(!this[_0x030b('0x7b')](_0x4365e5[_0x030b('0x110')])){return this['channel'][_0x030b('0x4a')](_0x4365e5,'no\x20condition\x20configured');}try{var _0x2106ea=eval(_0x4365e5['condition'])?_0x030b('0x111'):_0x030b('0x112');this[_0x030b('0x32')][_0x030b('0x8d')](util['format'](_0x030b('0x113'),_0x4365e5['condition'],_0x2106ea));return{'code':0xc8,'result':_0x2106ea};}catch(_0x52b5ab){return{'code':0xc8,'result':_0x030b('0x112')};}};AGIVertices[_0x030b('0xe')]['gotoiftime']=function(_0x553b16){logger[_0x030b('0x29')](util['format']('Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block',_0x553b16['label']));if(!this[_0x030b('0x7b')](_0x553b16[_0x030b('0x114')])){return this[_0x030b('0x32')]['error'](_0x553b16,_0x030b('0x115'));}var _0x859cdf=this['getIntervals'][_0x030b('0x7d')](this,_0x553b16['interval_id']);if(!_0x859cdf){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x553b16,'no\x20intervals\x20found');}for(var _0x3f6f1c=0x0;_0x3f6f1c<_0x859cdf[_0x030b('0x74')];_0x3f6f1c+=0x1){var _0x31e68f=this['channel'][_0x030b('0x76')](util[_0x030b('0x25')](_0x030b('0x116'),_0x859cdf[_0x3f6f1c]));if(_0x31e68f['result']===-0x1){return _0x31e68f;}logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x117'),_0x859cdf[_0x3f6f1c],_0x31e68f['extra']));if(_0x31e68f[_0x030b('0x7a')]===_0x030b('0x111')){logger[_0x030b('0x29')](util['format']('IFTIME\x20%s\x20%s',_0x859cdf[_0x3f6f1c],_0x030b('0x111')));this['channel'][_0x030b('0x8d')](util[_0x030b('0x25')]('IFTIME\x20%s\x20%s',_0x859cdf[_0x3f6f1c],_0x030b('0x111')));return{'code':0xc8,'result':_0x030b('0x111')};}else{logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x117'),_0x859cdf[_0x3f6f1c],_0x030b('0x112')));this['channel']['noop'](util[_0x030b('0x25')](_0x030b('0x117'),_0x859cdf[_0x3f6f1c],'false'));}}return{'code':0xc8,'result':_0x030b('0x112')};};AGIVertices[_0x030b('0xe')]['hangup']=function(_0x971d19){logger[_0x030b('0x29')](util['format']('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0x971d19[_0x030b('0x80')]));return this['channel'][_0x030b('0x118')]();};AGIVertices[_0x030b('0xe')]['ispeechasr']=function(_0x396ee1){logger[_0x030b('0x29')](util[_0x030b('0x25')]('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0x396ee1[_0x030b('0x80')]));if(!this['isConfigured'](_0x396ee1[_0x030b('0x59')])){return this['channel']['noop'](_0x030b('0xc0'));}var _0x258f8e='wav';var _0xacb259=util[_0x030b('0x25')](_0x030b('0xff'),FILES_PATH,rs['generate'](0x4));var _0x24decc=util[_0x030b('0x25')](_0x030b('0x100'),_0xacb259,_0x258f8e);var _0x122c89=!![];if(_0x396ee1['beep']===_0x030b('0x107')){_0x122c89=![];}var _0x3f891b=this[_0x030b('0x32')][_0x030b('0x108')](_0xacb259,_0x258f8e,_0x396ee1['intKey'],_0x396ee1[_0x030b('0x84')],undefined,_0x122c89);if(_0x3f891b[_0x030b('0x91')]!==-0x1){this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')]('ispeech\x20%s\x20file\x20created',_0x24decc));var _0x1a5e89=this['ispeechASR']['sync'](this,_0x396ee1,_0x24decc);if(_0x1a5e89){for(var _0x370454 in _0x1a5e89){if(_0x1a5e89[_0x030b('0xcf')](_0x370454)){this['channel']['setVariable'](util[_0x030b('0x25')](_0x030b('0x119'),_0x370454['toUpperCase']()),_0x1a5e89[_0x370454]);}}return this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')]('IspeechASR\x20Result\x20%s',JSON[_0x030b('0xe9')](_0x1a5e89)));}}return _0x3f891b;};AGIVertices[_0x030b('0xe')][_0x030b('0x11a')]=function(_0x31537b){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x11b'),_0x31537b[_0x030b('0x80')]));if(!this[_0x030b('0x7b')](_0x31537b[_0x030b('0x59')])){return this[_0x030b('0x32')][_0x030b('0x8d')](_0x030b('0xc0'));}if(!this[_0x030b('0x7b')](_0x31537b['text'])){return this['channel'][_0x030b('0x8d')](_0x030b('0x96'));}this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0x11c'),_0x31537b['text']));var _0xdc2a20=this[_0x030b('0x5c')][_0x030b('0x7d')](this,_0x31537b);if(_0xdc2a20){this['channel']['noop'](util['format'](_0x030b('0x11d'),_0xdc2a20));var _0x40aee9=this[_0x030b('0x32')][_0x030b('0xd1')](_0xdc2a20,_0x31537b[_0x030b('0x109')]);try{fs[_0x030b('0xd3')](_0xdc2a20+'.wav');}catch(_0x1c5672){logger[_0x030b('0x4a')](_0x1c5672);}return _0x40aee9;}return this['channel'][_0x030b('0x4a')](_0x31537b,_0x030b('0x11e'));};AGIVertices['prototype'][_0x030b('0x11f')]=function(_0x4a5eac){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x120'),_0x4a5eac[_0x030b('0x80')]));if(!this[_0x030b('0x7b')](_0x4a5eac[_0x030b('0x121')])){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x4a5eac,'no\x20find\x20by\x20configured');}logger[_0x030b('0x29')](util['format'](_0x030b('0x122'),this[_0x030b('0x32')][_0x030b('0x36')],_0x4a5eac[_0x030b('0x121')]));var _0x108130=this[_0x030b('0x4e')][_0x030b('0x7d')](this,_0x4a5eac[_0x030b('0x121')]);if(_0x108130){logger['info'](util[_0x030b('0x25')](_0x030b('0x123'),this[_0x030b('0x32')][_0x030b('0x36')],_0x4a5eac[_0x030b('0x121')]));this['channel']['noop'](util['format'](_0x030b('0x123'),this[_0x030b('0x32')][_0x030b('0x36')],_0x4a5eac[_0x030b('0x121')]));return{'code':0xc8,'result':_0x030b('0x124')};}else{logger[_0x030b('0x29')](util[_0x030b('0x25')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x030b('0x32')]['callerid'],_0x4a5eac[_0x030b('0x121')]));this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0x125'),this[_0x030b('0x32')][_0x030b('0x36')],_0x4a5eac[_0x030b('0x121')]));return{'code':0xc8,'result':_0x030b('0x126')};}};AGIVertices[_0x030b('0xe')][_0x030b('0x127')]=function(_0x358627){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x128'),_0x358627['label']));if(!this['isConfigured'](_0x358627[_0x030b('0x121')])){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x358627,_0x030b('0x129'));}logger['info'](util['format'](_0x030b('0x122'),this[_0x030b('0x32')][_0x030b('0x36')],_0x358627[_0x030b('0x121')]));var _0x25c580=this['agentLogout']['sync'](this,_0x358627[_0x030b('0x121')]);if(_0x25c580){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x123'),this['channel'][_0x030b('0x36')],_0x358627[_0x030b('0x121')]));this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0x123'),this[_0x030b('0x32')][_0x030b('0x36')],_0x358627[_0x030b('0x121')]));return{'code':0xc8,'result':_0x030b('0x124')};}else{logger[_0x030b('0x29')](util['format'](_0x030b('0x125'),this[_0x030b('0x32')][_0x030b('0x36')],_0x358627['findBy']));this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0x125'),this['channel'][_0x030b('0x36')],_0x358627[_0x030b('0x121')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0x030b('0xe')][_0x030b('0x12a')]=function(_0x3574b5){logger['info'](util[_0x030b('0x25')](_0x030b('0x12b'),_0x3574b5['label']));if(!this[_0x030b('0x7b')](_0x3574b5['operation'])){return this['channel']['error'](_0x3574b5,_0x030b('0x12c'));}this[_0x030b('0x32')]['noop'](util[_0x030b('0x25')](_0x030b('0x12d'),_0x3574b5[_0x030b('0x12e')]));var _0x518403=eval(_0x3574b5[_0x030b('0x12e')]);if(!this[_0x030b('0x7b')](_0x3574b5['variable_id'])){return this[_0x030b('0x32')][_0x030b('0x8d')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x2ef513=this[_0x030b('0x76')]['sync'](this,_0x3574b5[_0x030b('0xaf')]);if(!_0x2ef513){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x3574b5,_0x030b('0xb0'));}if(_['isArray'](_0x518403)){var _0x2b741f=this;_0x518403['forEach'](function(_0x475d17,_0x378fe9){_0x2b741f['channel'][_0x030b('0xb3')](util[_0x030b('0x25')](_0x030b('0x12f'),_0x2ef513,_0x378fe9),_0x475d17);});return this['channel'][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0x130'),_0x2ef513));}else{return this['channel'][_0x030b('0xb3')](_0x2ef513,_0x518403);}};AGIVertices[_0x030b('0xe')][_0x030b('0xa')]=function(_0x49e61c){logger[_0x030b('0x29')](util['format']('Enter\x20in\x20MENU\x20(%s)\x20block',_0x49e61c[_0x030b('0x80')]));if(_0x49e61c[_0x030b('0x7e')]===0x0){return this[_0x030b('0x7c')](_0x49e61c);}_0x49e61c['retry']-=0x1;if(!this[_0x030b('0x7b')](_0x49e61c[_0x030b('0xe2')])){return this['channel'][_0x030b('0x4a')](_0x49e61c,_0x030b('0xe3'));}var _0x4875f8=this[_0x030b('0xe4')]['sync'](this,_0x49e61c[_0x030b('0xe2')]);if(!_0x4875f8){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x49e61c,'no\x20file\x20audio\x20found');}var _0xb36b2=this[_0x030b('0x32')]['getData'](_0x4875f8,_0x49e61c[_0x030b('0xe6')],_0x49e61c[_0x030b('0x131')]);var _0x3cc0e5=_0xb36b2[_0x030b('0x91')];if(_0xb36b2[_0x030b('0x91')]===-0x1){this['createSquareDetailsReport'][_0x030b('0x7d')](this,_0x49e61c,'-1');return _0xb36b2;}else if(_0xb36b2[_0x030b('0x7a')]===_0x030b('0x84')){_0xb36b2[_0x030b('0x91')]=_0xb36b2['result']['length']>0x0?_0xb36b2['result']:'t';}else if(_[_0x030b('0x41')](_0xb36b2[_0x030b('0x91')])){_0xb36b2[_0x030b('0x91')]='#';_0x3cc0e5='#';}if(!this[_0x030b('0x7b')](_0x49e61c[_0x030b('0xaf')])){this[_0x030b('0x32')][_0x030b('0x8d')]('no\x20variable\x20selected\x20for\x20the\x20result');}else{var _0x541977=this['getVariable'][_0x030b('0x7d')](this,_0x49e61c[_0x030b('0xaf')]);if(!_0x541977){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x49e61c,_0x030b('0xb0'));}this[_0x030b('0x32')][_0x030b('0xb3')](_0x541977,_0x3cc0e5);}this[_0x030b('0x31')][_0x030b('0x7d')](this,_0x49e61c,_0x3cc0e5);return _0xb36b2;};AGIVertices['prototype'][_0x030b('0x8d')]=function(_0x4424b5){logger['info'](util[_0x030b('0x25')](_0x030b('0x132'),_0x4424b5['label']));return this[_0x030b('0x32')][_0x030b('0x8d')](_0x4424b5[_0x030b('0x133')]||_0x4424b5[_0x030b('0x80')]);};AGIVertices[_0x030b('0xe')][_0x030b('0x134')]=function(_0x4868fb){logger[_0x030b('0x29')](util['format'](_0x030b('0x135'),_0x4868fb['label']));if(!this[_0x030b('0x7b')](_0x4868fb[_0x030b('0x121')])){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x4868fb,'no\x20find\x20by\x20configured');}logger['info'](util[_0x030b('0x25')](_0x030b('0x122'),this['channel'][_0x030b('0x36')],_0x4868fb[_0x030b('0x121')]));var _0x4e59eb=this[_0x030b('0x48')][_0x030b('0x7d')](this,_0x4868fb['pause_id']);var _0x4a7854=this[_0x030b('0x49')][_0x030b('0x7d')](this,_0x4868fb[_0x030b('0x121')],_0x4e59eb);if(_0x4a7854){logger[_0x030b('0x29')](util['format'](_0x030b('0x123'),this[_0x030b('0x32')][_0x030b('0x36')],_0x4868fb[_0x030b('0x121')]));this[_0x030b('0x32')]['noop'](util[_0x030b('0x25')](_0x030b('0x123'),this[_0x030b('0x32')][_0x030b('0x36')],_0x4868fb[_0x030b('0x121')]));return{'code':0xc8,'result':'success'};}else{logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x125'),this['channel']['callerid'],_0x4868fb['findBy']));this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0x123'),this[_0x030b('0x32')][_0x030b('0x36')],_0x4868fb[_0x030b('0x121')]));return{'code':0xc8,'result':_0x030b('0x126')};}};AGIVertices['prototype'][_0x030b('0x136')]=function(_0x4180fd){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x137'),_0x4180fd['label']));if(!this[_0x030b('0x7b')](_0x4180fd[_0x030b('0xe2')])){return this['channel'][_0x030b('0x4a')](_0x4180fd,'no\x20file\x20audio\x20selected');}var _0x5bcce4=this[_0x030b('0xe4')]['sync'](this,_0x4180fd[_0x030b('0xe2')]);if(!_0x5bcce4){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x4180fd,'no\x20file\x20audio\x20found');}var _0x5cafaa=this[_0x030b('0x32')][_0x030b('0x53')](_0x030b('0x138'),[_0x5bcce4,_0x4180fd[_0x030b('0xde')]]);if(_0x5cafaa[_0x030b('0x91')]===-0x1){return _0x5cafaa;}return this['channel']['noop'](util['format']('Executed\x20command\x20%s\x20%s','PLAYBACK',_0x5bcce4));};AGIVertices[_0x030b('0xe')][_0x030b('0x139')]=function(_0x53e325){logger[_0x030b('0x29')](util['format'](_0x030b('0x13a'),_0x53e325['label']));if(!this[_0x030b('0x7b')](_0x53e325[_0x030b('0x13b')])){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x53e325,'no\x20queue\x20selected');}var _0x3edcb1='';var _0x2e97ca=parseInt(_0x53e325[_0x030b('0x13b')],0xa);if(isNaN(_0x2e97ca)){_0x3edcb1=_0x53e325[_0x030b('0x13b')];}else{_0x3edcb1=this[_0x030b('0x11')]['sync'](this,_0x53e325[_0x030b('0x13b')]);if(!_0x3edcb1){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x53e325,_0x030b('0x13c'));}}var _0x52b595='';if(this[_0x030b('0x7b')](_0x53e325[_0x030b('0xe2')])){var _0x210553=this[_0x030b('0xe4')][_0x030b('0x7d')](this,_0x53e325[_0x030b('0xe2')]);if(_0x210553){_0x52b595=_0x210553;}}this['createSquareDetailsReport']['sync'](this,_0x53e325,_0x3edcb1);if(_0x53e325['opts'][_0x030b('0x13d')]('x')<0x0){_0x53e325[_0x030b('0xde')]+='x';}if(_0x53e325['opts'][_0x030b('0x13d')]('X')<0x0){_0x53e325[_0x030b('0xde')]+='X';}this[_0x030b('0x32')][_0x030b('0xb3')]('XMCS-QUEUE',_0x3edcb1?_0x3edcb1['toLowerCase']():'');var _0x16d5d7=this[_0x030b('0x32')]['exec'](_0x030b('0x13e'),[_0x3edcb1,_0x53e325[_0x030b('0xde')],_0x53e325['url'],_0x52b595,_0x53e325[_0x030b('0x84')],_0x53e325['agi'],_0x53e325[_0x030b('0x13f')],_0x53e325[_0x030b('0x140')],'',_0x53e325[_0x030b('0x141')]]);if(_0x16d5d7['result']===-0x1){return _0x16d5d7;}return this[_0x030b('0x32')][_0x030b('0x8d')](util['format'](_0x030b('0x92'),_0x030b('0x13e'),_0x3edcb1));};AGIVertices[_0x030b('0xe')]['record']=function(_0x571a5e){logger[_0x030b('0x29')](util[_0x030b('0x25')]('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x571a5e[_0x030b('0x80')]));var _0x37dc5a=_0x571a5e[_0x030b('0x142')]||_0x030b('0xfe');var _0x5799eb=util[_0x030b('0x25')](_0x030b('0x143'),this[_0x030b('0x32')][_0x030b('0x33')],rs[_0x030b('0xec')](0x5));var _0x424fdf=util[_0x030b('0x25')](_0x030b('0x144'),FILES_PATH,_0x5799eb,_0x37dc5a);var _0x78ff7c=util[_0x030b('0x25')](_0x030b('0xff'),FILES_PATH,_0x5799eb);this[_0x030b('0x37')][_0x030b('0x7d')](this,_0x571a5e,_0x5799eb,_0x424fdf);this['channel']['setVariable'](_0x030b('0x145'),_0x5799eb);logger[_0x030b('0x29')](_0x030b('0x146'),_0x78ff7c,_0x37dc5a,_0x571a5e[_0x030b('0x147')],_0x571a5e[_0x030b('0x84')]);return this['channel'][_0x030b('0x108')](_0x78ff7c,_0x37dc5a,_0x571a5e[_0x030b('0x147')],_0x571a5e[_0x030b('0x84')],undefined,!![]);};AGIVertices[_0x030b('0xe')][_0x030b('0x148')]=function(_0x4122f9){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x149'),_0x4122f9[_0x030b('0x80')]));return this['channel'][_0x030b('0x14a')](_0x4122f9[_0x030b('0x14b')][_0x030b('0x54')](/\s+/g,''),_0x4122f9[_0x030b('0x147')]);};AGIVertices[_0x030b('0xe')][_0x030b('0x14c')]=function(_0x1608f7){logger[_0x030b('0x29')](util['format']('Enter\x20in\x20SAYNUMBER\x20(%s)\x20block',_0x1608f7[_0x030b('0x80')]));return this['channel'][_0x030b('0x14d')](_0x1608f7['number'][_0x030b('0x54')](/\s+/g,''),_0x1608f7[_0x030b('0x147')]);};AGIVertices[_0x030b('0xe')][_0x030b('0x14e')]=function(_0x3127ff){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x14f'),_0x3127ff[_0x030b('0x80')]));return this[_0x030b('0x32')][_0x030b('0x150')](_0x3127ff[_0x030b('0x56')],_0x3127ff[_0x030b('0x147')]);};AGIVertices['prototype'][_0x030b('0x151')]=function(_0x9c63cf){logger[_0x030b('0x29')](util['format'](_0x030b('0x152'),_0x9c63cf['label']));if(!this[_0x030b('0x7b')](_0x9c63cf[_0x030b('0x153')])){return this[_0x030b('0x32')][_0x030b('0x8d')](_0x030b('0x154'));}var _0x1290e1=this[_0x030b('0x1d')]['sync'](this,_0x9c63cf[_0x030b('0x153')]);if(!_0x1290e1||!_0x1290e1['Smtp']){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x9c63cf,_0x030b('0x155'));}var _0x1c607f={'from':util[_0x030b('0x25')](_0x030b('0x156'),_0x1290e1[_0x030b('0x15')],_0x1290e1[_0x030b('0x157')]||_0x1290e1[_0x030b('0x158')][_0x030b('0x159')]),'to':_0x9c63cf['to']||'','cc':_0x9c63cf['cc']||'','bcc':_0x9c63cf[_0x030b('0x15a')]||'','subject':_0x9c63cf[_0x030b('0x15b')],'html':_0x9c63cf[_0x030b('0x56')],'text':_0x9c63cf[_0x030b('0x56')]};var _0x164283={'tls':{'rejectUnauthorized':![]}};if(_0x1290e1[_0x030b('0x158')][_0x030b('0x15c')]){_0x164283[_0x030b('0x15c')]=_0x1290e1[_0x030b('0x158')][_0x030b('0x15c')];}else{_0x164283[_0x030b('0x15d')]=_0x1290e1[_0x030b('0x158')][_0x030b('0x15d')];_0x164283[_0x030b('0x15e')]=_0x1290e1[_0x030b('0x158')][_0x030b('0x15e')];_0x164283[_0x030b('0x15f')]=_0x1290e1[_0x030b('0x158')][_0x030b('0x15f')];}if(_0x1290e1[_0x030b('0x158')][_0x030b('0x160')]){_0x164283[_0x030b('0x161')]={'user':_0x1290e1[_0x030b('0x158')][_0x030b('0x159')],'pass':_0x1290e1[_0x030b('0x158')][_0x030b('0x162')]};}if(this['isConfigured'](_0x9c63cf[_0x030b('0x163')])){}logger[_0x030b('0x164')](_0x030b('0x165'),JSON[_0x030b('0xe9')](_0x1c607f));this[_0x030b('0x31')]['sync'](this,_0x9c63cf,_0x9c63cf['account_id']);this[_0x030b('0x32')]['noop'](util[_0x030b('0x25')]('Trying\x20SendMail\x20with\x20account\x20%s',_0x1290e1[_0x030b('0x15')]));this[_0x030b('0x1f')]['sync'](this,_0x164283,_0x1c607f);return this[_0x030b('0x32')]['noop'](_0x030b('0x166'));};AGIVertices[_0x030b('0xe')][_0x030b('0x167')]=function(_0x5e7153){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x168'),_0x5e7153[_0x030b('0x80')]));return this[_0x030b('0x32')]['noop'](_0x030b('0x169'));};AGIVertices[_0x030b('0xe')][_0x030b('0x16a')]=function(_0x5d39f9){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x16b'),_0x5d39f9[_0x030b('0x80')]));if(!this[_0x030b('0x7b')](_0x5d39f9[_0x030b('0x16c')])){return this[_0x030b('0x32')]['noop'](_0x030b('0x16d'));}var _0x4c1099=this[_0x030b('0x2e')]['sync'](this,_0x5d39f9[_0x030b('0x16c')]);if(!_0x4c1099){return this['channel'][_0x030b('0x4a')](_0x5d39f9,_0x030b('0x16e'));}var _0x175968={'body':_0x5d39f9[_0x030b('0x16f')],'phone':_0x5d39f9['to']||'','SmsAccountId':_0x4c1099['id']};logger[_0x030b('0x164')](_0x030b('0x170'),JSON[_0x030b('0xe9')](_0x175968));this[_0x030b('0x31')][_0x030b('0x7d')](this,_0x5d39f9,_0x5d39f9[_0x030b('0x16c')]);this[_0x030b('0x32')]['noop'](util[_0x030b('0x25')](_0x030b('0x171'),_0x4c1099['name']));this[_0x030b('0x30')][_0x030b('0x7d')](this,_0x175968);return this['channel'][_0x030b('0x8d')](_0x030b('0x172'));};AGIVertices[_0x030b('0xe')][_0x030b('0x173')]=function(_0x51bf8c){logger[_0x030b('0x29')](util['format'](_0x030b('0x174'),_0x51bf8c[_0x030b('0x80')]));if(!this[_0x030b('0x7b')](_0x51bf8c['variable_id'])){return this['channel'][_0x030b('0x4a')](_0x51bf8c,_0x030b('0x175'));}var _0x21b840=this[_0x030b('0x76')][_0x030b('0x7d')](this,_0x51bf8c[_0x030b('0xaf')]);if(!_0x21b840){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x51bf8c,_0x030b('0xb0'));}return this[_0x030b('0x32')][_0x030b('0xb3')](_0x21b840,_0x51bf8c[_0x030b('0x176')]);};AGIVertices[_0x030b('0xe')][_0x030b('0x177')]=function(_0xeda96c){logger[_0x030b('0x29')](util[_0x030b('0x25')]('Enter\x20in\x20START\x20(%s)\x20block',_0xeda96c[_0x030b('0x80')]));this[_0x030b('0x32')]['noop'](_0x030b('0x178'));if(_0xeda96c['answer']==='yes'){this[_0x030b('0x32')][_0x030b('0x8d')](_0x030b('0x179'));return this[_0x030b('0x32')][_0x030b('0x83')]();}return this['channel'][_0x030b('0x8d')]('Skipped\x20Answer');};AGIVertices[_0x030b('0xe')][_0x030b('0x17a')]=function(_0x1bf469){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x17b'),_0x1bf469['label']));if(!this['isConfigured'](_0x1bf469[_0x030b('0x17c')])){return this[_0x030b('0x32')]['error'](_0x1bf469,_0x030b('0x17d'));}var _0x4ec70d=this[_0x030b('0x13')][_0x030b('0x7d')](this,_0x1bf469[_0x030b('0x17c')]);if(!this[_0x030b('0x7b')](_0x4ec70d)){return this['channel']['error'](_0x1bf469,util[_0x030b('0x25')]('no\x20subproject\x20found\x20with\x20id\x20%d',_0x1bf469['project_id']));}if(_0x4ec70d===this[_0x030b('0x32')]['arg_1']){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x1bf469,_0x030b('0x17e'));}this['createSquareDetailsReport'][_0x030b('0x7d')](this,_0x1bf469,_0x4ec70d);var _0xc5a8ab=this['channel']['exec'](_0x030b('0x17f'),util[_0x030b('0x25')](_0x030b('0x180'),config[_0x030b('0x7')][_0x030b('0x15d')]||_0x030b('0x181'),_0x4ec70d,this[_0x030b('0x32')][_0x030b('0x35')]));if(_0xc5a8ab[_0x030b('0x91')]===-0x1){return _0xc5a8ab;}return this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0x92'),'AGI',_0x4ec70d));};AGIVertices[_0x030b('0xe')]['system']=function(_0x21be03){logger[_0x030b('0x29')](util[_0x030b('0x25')]('Enter\x20in\x20SYSTEM\x20(%s)\x20block',_0x21be03[_0x030b('0x80')]));var _0x182ea3=this[_0x030b('0x52')][_0x030b('0x7d')](this,_0x21be03['command']);this[_0x030b('0x31')]['sync'](this,_0x21be03,_0x21be03[_0x030b('0x81')]);if(this[_0x030b('0x7b')](_0x21be03[_0x030b('0xaf')])){var _0x1230a5=this[_0x030b('0x76')][_0x030b('0x7d')](this,_0x21be03[_0x030b('0xaf')]);if(_0x1230a5){this['channel']['setVariable'](_0x1230a5,_0x182ea3);return this[_0x030b('0x32')]['noop'](util[_0x030b('0x25')](_0x030b('0x182'),_0x21be03[_0x030b('0x81')],_0x1230a5));}}return this[_0x030b('0x32')]['noop'](util['format'](_0x030b('0x183'),_0x21be03['command']));};AGIVertices[_0x030b('0xe')][_0x030b('0x184')]=function(_0x2307b2){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x185'),_0x2307b2['label']));if(!this[_0x030b('0x7b')](_0x2307b2['text'])){return this[_0x030b('0x32')][_0x030b('0x8d')](_0x030b('0x96'));}this['channel']['noop'](util[_0x030b('0x25')](_0x030b('0x186'),_0x2307b2[_0x030b('0x56')]));var _0x331c50=this[_0x030b('0x55')][_0x030b('0x7d')](this,_0x2307b2);if(_0x331c50){this[_0x030b('0x32')][_0x030b('0x8d')](util['format'](_0x030b('0x187'),_0x331c50));var _0x59866c=this['channel']['streamFile'](_0x331c50);try{fs['unlink'](_0x331c50+'.wav');}catch(_0x4b6634){logger['error'](_0x4b6634);}return _0x59866c;}return this[_0x030b('0x32')]['error'](_0x2307b2,_0x030b('0x188'));};AGIVertices['prototype'][_0x030b('0x189')]=function(_0x565e26){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x18a'),_0x565e26[_0x030b('0x80')]));if(!this[_0x030b('0x7b')](_0x565e26[_0x030b('0x121')])){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x565e26,_0x030b('0x129'));}logger[_0x030b('0x29')](util[_0x030b('0x25')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this['channel']['callerid'],_0x565e26[_0x030b('0x121')]));var _0x2f5577=this['agentUnpause'][_0x030b('0x7d')](this,_0x565e26[_0x030b('0x121')]);if(_0x2f5577){logger[_0x030b('0x29')](util[_0x030b('0x25')](_0x030b('0x123'),this['channel']['callerid'],_0x565e26[_0x030b('0x121')]));this[_0x030b('0x32')][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0x123'),this['channel'][_0x030b('0x36')],_0x565e26[_0x030b('0x121')]));return{'code':0xc8,'result':_0x030b('0x124')};}else{logger[_0x030b('0x29')](util['format'](_0x030b('0x125'),this[_0x030b('0x32')][_0x030b('0x36')],_0x565e26['findBy']));this[_0x030b('0x32')][_0x030b('0x8d')](util['format'](_0x030b('0x125'),this[_0x030b('0x32')][_0x030b('0x36')],_0x565e26[_0x030b('0x121')]));return{'code':0xc8,'result':_0x030b('0x126')};}};AGIVertices['prototype'][_0x030b('0x18b')]=function(_0x17d9b5){logger[_0x030b('0x29')](util['format']('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x17d9b5[_0x030b('0x80')]));var _0xa98fe9=this[_0x030b('0x32')][_0x030b('0x53')](_0x030b('0x18c'),[_0x17d9b5['mailbox'],_0x17d9b5[_0x030b('0x90')]]);if(_0xa98fe9[_0x030b('0x91')]===-0x1){return _0xa98fe9;}return this['channel'][_0x030b('0x8d')](util[_0x030b('0x25')](_0x030b('0x92'),_0x030b('0x18c'),_0x17d9b5[_0x030b('0x18d')]));};AGIVertices[_0x030b('0xe')][_0x030b('0x18e')]=function(_0x40345d){logger['info'](util[_0x030b('0x25')](_0x030b('0x18f'),_0x40345d[_0x030b('0x80')]));if(!this[_0x030b('0x7b')](_0x40345d[_0x030b('0xaf')])){return this[_0x030b('0x32')][_0x030b('0x4a')](_0x40345d,'no\x20variable\x20selected');}var _0x49199c=this[_0x030b('0x76')][_0x030b('0x7d')](this,_0x40345d[_0x030b('0xaf')]);if(!_0x49199c){return this[_0x030b('0x32')]['error'](_0x40345d,_0x030b('0xb0'));}var _0x1408bf=this[_0x030b('0x32')][_0x030b('0x76')](_0x49199c);return{'code':0xc8,'result':_0x1408bf[_0x030b('0x7a')]?_0x1408bf[_0x030b('0x7a')]:'-'};};String[_0x030b('0xe')][_0x030b('0x75')]=function(_0x464162,_0x43c98a){return this[_0x030b('0x73')](_0x464162)[_0x030b('0x190')](_0x43c98a);};module[_0x030b('0x191')]=AGIVertices;
\ No newline at end of file
+var _0x1eff=['%s/recordings/%s.%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','Smtp','no\x20mail\x20account\x20found','email','user','subject','service','host','port','secure','auth','pass','template_id','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','sms_text','sendSMS\x20message','Trying\x20SendSMS\x20with\x20account\x20%s','set','Enter\x20in\x20SET\x20(%s)\x20block','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','answer','yes','Answer','subproject','project_id','no\x20subproject\x20selected','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','system','sh\x20command:\x20%s\x20result\x20no\x20stored','tts','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','no\x20variable\x20selected','join','path','lodash','shelljs','odbc','randomstring','moment','mustache','../../config/logger','agi','../../config/environment','/var/opt/motion2/server/files','getdigits','getsecretdigits','channel','rpc','mailRpc','prototype','getVariable','getVariableById','then','name','catch','getSquareProject','getSquareProjectById','getSquareOdbc','getSquareOdbcById','dsn','getUser','getUserById','getTrunk','getTrunkById','getSound','getSoundById','getMailAccountById','sendMailMessage','getIntervals','getIntervalById','IntervalId','map','Intervals','interval','getSoundPath','format','%s/sounds/converted/%s','getQueryOdbc','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','query','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','callerid','createSquareRecording','calleridname','context','priority','accountcode','dnid','arg_1','file','createSquareMessage','createCmContact','isEmpty','isNil','random','lastName','phone','list_id','scheduledAt','Callback\x20scheduled\x20at\x20','callback_priority','getPause','getPauseById','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','%s/%s@from-sip/n','LOCAL','shellCommand','exec','trim','replace','googleTTS','google_tts_language','googleDialogflow','key','text','dialogflow_language','sestekNDA','ispeech_tts_language','speed','ispeechASR','ispeech_asr_language','en-US','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_voice','Amy','aws_text_type','awsLex','aws_lex_region','aws_bot_name','googleASR','google_asr_language','tildeASR','clear','hasOwnProperty','isString','replaceAllVariables','split','length','replaceAll','extra','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','setVariable','isConfigured','maxRetry','sync','retry','command','args','Enter\x20in\x20ANSWER\x20(%s)\x20block','timeout','Wait\x20%s\x20seconds\x20before\x20answer','callback','Enter\x20in\x20CALLBACK\x20(%s)\x20block','add','delay','minutes','noop','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','options','Executed\x20command\x20%s\x20%s','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','no\x20text\x20configured','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','grammar','no\x20grammar\x20configured','MRCPRecog','LUMENVOX_ASR_CONFIDENCE','getAndSetVariable','RECOG_INPUT()','RECOG_INSTANCE()','LUMENVOX_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','RECOG_CONFIDENCE()','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','database','odbc_id','no\x20database\x20selected','no\x20odbc\x20database\x20found','no\x20query\x20configured','variable_id','no\x20variable\x20found','forEach','keys','%s[%s][%s]','%s_ROWS_COUNT','debug','no\x20user\x20selected','sip_id','no\x20user\x20found','DIAL','SIP/%s','opts','url','Executed\x20command\x20%s','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','toUpperCase','speech','out','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','username','no\x20username\x20configured','password','ndassistant_url','Trying\x20SestekNDA:\x20%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','.wav','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','Enter\x20in\x20END\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','SIP/%s/%s','Enter\x20in\x20FINALLY\x20(%s)\x20block','finally','file_id','no\x20file\x20audio\x20found','getData','response','maxdigit','toString','stringify','mindigit','hiddendigitsnum','generate','hiddendigitspos','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','GOAL\x20%s','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','message','Amazon\x20Lex\x20ready\x20for\x20fulfillment','googleasr','wav','%s/recordings/%s','%s.%s','beep','NOBEEP','recordFile','intKey','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','no\x20appid\x20configured','appsecret','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','extension','gotoif','condition','true','false','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','no\x20interval\x20configured','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','ispeechTTS','unlink','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','AGENT\x20%s\x20FOUND\x20BY','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','FIND\x20AGENT\x20%s\x20BY\x20%s','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','math\x20%s','no\x20variable\x20selected\x20for\x20the\x20result','isArray','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','no\x20file\x20audio\x20selected','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','success','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','no\x20queue\x20found','indexOf','XMCS-QUEUE','QUEUE','macro','gosub','position','record','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s_%s'];(function(_0x32f7d7,_0x54231b){var _0x133d09=function(_0x41a7ab){while(--_0x41a7ab){_0x32f7d7['push'](_0x32f7d7['shift']());}};_0x133d09(++_0x54231b);}(_0x1eff,0x1d5));var _0xf1ef=function(_0x3387b5,_0x425d52){_0x3387b5=_0x3387b5-0x0;var _0xa98f9c=_0x1eff[_0x3387b5];return _0xa98f9c;};'use strict';var fs=require('fs');var path=require(_0xf1ef('0x0'));var util=require('util');var _=require(_0xf1ef('0x1'));var sh=require(_0xf1ef('0x2'));var odbc=require(_0xf1ef('0x3'))();var rs=require(_0xf1ef('0x4'));var moment=require(_0xf1ef('0x5'));var Mustache=require(_0xf1ef('0x6'));var logger=require(_0xf1ef('0x7'))(_0xf1ef('0x8'));var config=require(_0xf1ef('0x9'));var scripts=require('./scripts');var FILES_PATH=_0xf1ef('0xa');var verticesWithRetry=['menu',_0xf1ef('0xb'),_0xf1ef('0xc')];var AGIVertices=function(_0x326ce3,_0x1a8316,_0x34b680){this[_0xf1ef('0xd')]=_0x326ce3;this[_0xf1ef('0xe')]=_0x1a8316;this[_0xf1ef('0xf')]=_0x34b680;};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x11')]=function(_0x541877,_0x5bda66){this[_0xf1ef('0xe')][_0xf1ef('0x12')](_0x541877)[_0xf1ef('0x13')](function(_0x1fb212){_0x5bda66(null,_0x1fb212?_0x1fb212[_0xf1ef('0x14')]:![]);})['catch'](function(_0x96e19){_0x5bda66(_0x96e19);});};AGIVertices[_0xf1ef('0x10')]['getVoiceQueue']=function(_0x253e47,_0x5ca36e){this[_0xf1ef('0xe')]['getVoiceQueueById'](_0x253e47)[_0xf1ef('0x13')](function(_0x463d11){_0x5ca36e(null,_0x463d11?_0x463d11[_0xf1ef('0x14')]:![]);})[_0xf1ef('0x15')](function(_0x21fefd){_0x5ca36e(_0x21fefd);});};AGIVertices['prototype'][_0xf1ef('0x16')]=function(_0x49c6d6,_0x82560e){this['rpc'][_0xf1ef('0x17')](_0x49c6d6)['then'](function(_0x209ca5){_0x82560e(null,_0x209ca5?_0x209ca5[_0xf1ef('0x14')]:![]);})[_0xf1ef('0x15')](function(_0x16554d){_0x82560e(_0x16554d);});};AGIVertices['prototype'][_0xf1ef('0x18')]=function(_0x56e168,_0x38fbe5){this[_0xf1ef('0xe')][_0xf1ef('0x19')](_0x56e168)[_0xf1ef('0x13')](function(_0x4686c8){_0x38fbe5(null,_0x4686c8?_0x4686c8[_0xf1ef('0x1a')]:![]);})[_0xf1ef('0x15')](function(_0x3872a8){_0x38fbe5(_0x3872a8);});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x1b')]=function(_0x2fb26c,_0x22eabf){this[_0xf1ef('0xe')][_0xf1ef('0x1c')](_0x2fb26c)[_0xf1ef('0x13')](function(_0x858dd0){_0x22eabf(null,_0x858dd0?_0x858dd0[_0xf1ef('0x14')]:![]);})[_0xf1ef('0x15')](function(_0x4c79a6){_0x22eabf(_0x4c79a6);});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x1d')]=function(_0x40559e,_0x9716ee){this[_0xf1ef('0xe')][_0xf1ef('0x1e')](_0x40559e)[_0xf1ef('0x13')](function(_0x467f38){_0x9716ee(null,_0x467f38?_0x467f38[_0xf1ef('0x14')]:![]);})[_0xf1ef('0x15')](function(_0x190c95){_0x9716ee(_0x190c95);});};AGIVertices['prototype'][_0xf1ef('0x1f')]=function(_0x33e394,_0x56d660){var _0x3f3a63=this;this[_0xf1ef('0xe')][_0xf1ef('0x20')](_0x33e394)[_0xf1ef('0x13')](function(_0x19a9f6){_0x56d660(null,_0x19a9f6?_0x3f3a63['getSoundPath'](_0x19a9f6['save_name']):![]);})[_0xf1ef('0x15')](function(_0x2d8ea8){_0x56d660(_0x2d8ea8);});};AGIVertices[_0xf1ef('0x10')]['getMailAccount']=function(_0x582834,_0x44dbaf){this[_0xf1ef('0xe')][_0xf1ef('0x21')](_0x582834)[_0xf1ef('0x13')](function(_0x59814f){_0x44dbaf(null,_0x59814f?_0x59814f:![]);})[_0xf1ef('0x15')](function(_0x717bb){_0x44dbaf(_0x717bb);});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x22')]=function(_0x50c4a5,_0x4f906e,_0x44120b){this[_0xf1ef('0xf')][_0xf1ef('0x22')](_0x50c4a5,_0x4f906e)[_0xf1ef('0x13')](function(){_0x44120b(null);})[_0xf1ef('0x15')](function(_0x16a629){_0x44120b(_0x16a629);});};AGIVertices['prototype'][_0xf1ef('0x23')]=function(_0x34dc94,_0x345798){this[_0xf1ef('0xe')][_0xf1ef('0x24')](_0x34dc94)['then'](function(_0x3b6da1){if(_0x3b6da1){if(_0x3b6da1[_0xf1ef('0x25')]){_0x345798(null,[_0x3b6da1['interval']]);}else{_0x345798(null,_[_0xf1ef('0x26')](_0x3b6da1[_0xf1ef('0x27')],_0xf1ef('0x28')));}}else{_0x345798(null,![]);}})[_0xf1ef('0x15')](function(_0x45bfc7){_0x345798(_0x45bfc7);});};AGIVertices['prototype'][_0xf1ef('0x29')]=function(_0x19ca73){return util[_0xf1ef('0x2a')](_0xf1ef('0x2b'),FILES_PATH,_0x19ca73);};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x2c')]=function(_0x38b083,_0x59ffac,_0x405c66){odbc['open'](_0x38b083,function(_0x36da6a){if(_0x36da6a){logger[_0xf1ef('0x2d')](_0xf1ef('0x2e'),_0x36da6a);_0x405c66(_0x36da6a);}else{logger[_0xf1ef('0x2f')]('ODBC\x20connection\x20successfully');odbc[_0xf1ef('0x30')](_0x59ffac,function(_0x479246,_0x1fe25b){if(_0x479246){logger[_0xf1ef('0x2f')](_0xf1ef('0x31'),_0x59ffac);_0x405c66(_0x479246);}else{logger[_0xf1ef('0x2f')](_0xf1ef('0x32'),_0x59ffac);odbc[_0xf1ef('0x33')](function(_0x5aaed4){if(_0x5aaed4){logger[_0xf1ef('0x2d')](_0xf1ef('0x34'),_0x5aaed4);}_0x405c66(null,_0x1fe25b);});}});}});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x35')]=function(_0x5c77e9,_0x2d6c89){this[_0xf1ef('0xe')][_0xf1ef('0x36')](_0x5c77e9)[_0xf1ef('0x13')](function(_0x4bdecb){_0x2d6c89(null,_0x4bdecb?_0x4bdecb:![]);})['catch'](function(_0x1495dd){_0x2d6c89(_0x1495dd);});};AGIVertices['prototype'][_0xf1ef('0x37')]=function(_0x18309b,_0x52a0a6){this[_0xf1ef('0xe')]['createSmsMessage'](_0x18309b)[_0xf1ef('0x13')](function(_0x3c4d32){_0x52a0a6(null,_0x3c4d32);})['catch'](function(_0x56c483){_0x52a0a6(_0x56c483);});};AGIVertices[_0xf1ef('0x10')]['createSquareDetailsReport']=function(_0x5cd165,_0x6aaae7,_0x4b37a3){this['rpc'][_0xf1ef('0x38')]({'uniqueid':this[_0xf1ef('0xd')][_0xf1ef('0x39')],'node':_0x5cd165[_0xf1ef('0x3a')],'application':_0x5cd165[_0xf1ef('0x3b')],'data':_0x6aaae7||null,'project_name':this[_0xf1ef('0xd')]['arg_1'],'callerid':this[_0xf1ef('0xd')][_0xf1ef('0x3c')]})['then'](function(_0x20815f){if(_0x4b37a3){_0x4b37a3(null,_0x20815f);}})[_0xf1ef('0x15')](function(_0x43ccb0){if(_0x4b37a3){_0x4b37a3(_0x43ccb0);}});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x3d')]=function(_0x4f36d7,_0x823c87,_0x2a1719,_0x3dd98a){this[_0xf1ef('0xe')][_0xf1ef('0x3d')]({'uniqueid':this[_0xf1ef('0xd')]['uniqueid'],'callerid':this[_0xf1ef('0xd')][_0xf1ef('0x3c')],'calleridname':this[_0xf1ef('0xd')][_0xf1ef('0x3e')],'context':this['channel'][_0xf1ef('0x3f')],'extension':this['channel']['extension'],'priority':this['channel'][_0xf1ef('0x40')],'accountcode':this[_0xf1ef('0xd')][_0xf1ef('0x41')],'dnid':this['channel'][_0xf1ef('0x42')],'projectName':this[_0xf1ef('0xd')][_0xf1ef('0x43')],'saveName':_0x823c87,'filename':_0x4f36d7[_0xf1ef('0x44')]||_0x823c87,'savePath':_0x2a1719})['then'](function(_0x1fca3a){_0x3dd98a(null,_0x1fca3a);})[_0xf1ef('0x15')](function(_0x47a2f5){_0x3dd98a(_0x47a2f5);});};AGIVertices['prototype'][_0xf1ef('0x45')]=function(_0x5489ed,_0x419291,_0x5b5a78){this[_0xf1ef('0xe')][_0xf1ef('0x45')]({'uniqueid':this[_0xf1ef('0xd')]['uniqueid'],'body':_0x5489ed,'direction':_0x419291})['then'](function(_0x1a5758){if(_0x5b5a78){_0x5b5a78(null,_0x1a5758);}})[_0xf1ef('0x15')](function(_0x2f43de){if(_0x5b5a78){_0x5b5a78(_0x2f43de);}});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x46')]=function(_0x4e8b3a,_0x4f3487){this[_0xf1ef('0xe')]['createCmContact']({'firstName':_[_0xf1ef('0x47')](_0x4e8b3a['name'])||_[_0xf1ef('0x48')](_0x4e8b3a[_0xf1ef('0x14')])?'callback_'+Math[_0xf1ef('0x49')]():_0x4e8b3a['name'],'lastName':_['isEmpty'](_0x4e8b3a['lastName'])||_[_0xf1ef('0x48')](_0x4e8b3a[_0xf1ef('0x4a')])?null:_0x4e8b3a[_0xf1ef('0x4a')],'phone':_0x4e8b3a[_0xf1ef('0x4b')],'ListId':_0x4e8b3a[_0xf1ef('0x4c')],'scheduledAt':_0x4e8b3a[_0xf1ef('0x4d')],'callbackUniqueid':this[_0xf1ef('0xd')]['uniqueid'],'tags':'callback','description':_0xf1ef('0x4e')+_0x4e8b3a[_0xf1ef('0x4d')]['toString'](),'priority':_0x4e8b3a[_0xf1ef('0x4f')]})[_0xf1ef('0x13')](function(_0x4a08a4){_0x4f3487(null,_0x4a08a4);})[_0xf1ef('0x15')](function(_0xfc4c77){_0x4f3487(_0xfc4c77);});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x50')]=function(_0x4d5081,_0x498e6f){this[_0xf1ef('0xe')][_0xf1ef('0x51')](_0x4d5081)['then'](function(_0x7d0bfb){_0x498e6f(null,_0x7d0bfb?_0x7d0bfb[_0xf1ef('0x14')]:![]);})['catch'](function(_0x261336){_0x498e6f(_0x261336);});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x52')]=function(_0x9e7655,_0x44de97,_0x263e46){var _0x5d2acc={'role':_0xf1ef('0x53')};_0x5d2acc[_0x9e7655]=this[_0xf1ef('0xd')][_0xf1ef('0x3c')];this['rpc'][_0xf1ef('0x52')](_0x5d2acc,_0x44de97,this[_0xf1ef('0xd')][_0xf1ef('0x39')])['then'](function(_0x321161){_0x263e46(null,_[_0xf1ef('0x48')](_0x321161)?![]:!![]);})[_0xf1ef('0x15')](function(_0x4f822e){logger[_0xf1ef('0x2d')](_0x4f822e);_0x263e46(null,![]);});};AGIVertices[_0xf1ef('0x10')]['agentUnpause']=function(_0x2a23dd,_0xc01ac4){var _0x171b34={'role':'agent'};_0x171b34[_0x2a23dd]=this[_0xf1ef('0xd')][_0xf1ef('0x3c')];this[_0xf1ef('0xe')][_0xf1ef('0x54')](_0x171b34)[_0xf1ef('0x13')](function(_0x487219){_0xc01ac4(null,_['isNil'](_0x487219)?![]:!![]);})[_0xf1ef('0x15')](function(_0x2bc0db){logger[_0xf1ef('0x2d')](_0x2bc0db);_0xc01ac4(null,![]);});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x55')]=function(_0x67a25e,_0x1958d6){var _0x4c31e1={'role':_0xf1ef('0x53')};_0x4c31e1[_0x67a25e]=this[_0xf1ef('0xd')][_0xf1ef('0x3c')];this[_0xf1ef('0xe')][_0xf1ef('0x55')](_0x4c31e1)[_0xf1ef('0x13')](function(_0x337301){_0x1958d6(null,_[_0xf1ef('0x48')](_0x337301)?![]:!![]);})[_0xf1ef('0x15')](function(_0x5ce177){logger['error'](_0x5ce177);_0x1958d6(null,![]);});};AGIVertices['prototype'][_0xf1ef('0x56')]=function(_0x22706a,_0x5353e1){var _0x5ad438={'role':_0xf1ef('0x53')};_0x5ad438[_0x22706a]=this[_0xf1ef('0xd')][_0xf1ef('0x3c')];var _0x153467=_0x22706a!=_0xf1ef('0x57')?util[_0xf1ef('0x2a')](_0xf1ef('0x58'),_0xf1ef('0x59'),this[_0xf1ef('0xd')][_0xf1ef('0x3c')]):undefined;this[_0xf1ef('0xe')]['agentLogin'](_0x5ad438,_0x153467)['then'](function(_0x2645e2){_0x5353e1(null,_[_0xf1ef('0x48')](_0x2645e2)?![]:!![]);})[_0xf1ef('0x15')](function(_0x2b9ed4){logger[_0xf1ef('0x2d')](_0x2b9ed4);_0x5353e1(null,![]);});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x5a')]=function(_0x3a397c,_0x1764c9){sh[_0xf1ef('0x5b')](_[_0xf1ef('0x5c')](_0x3a397c),function(_0x1af7f2,_0x132680){var _0x54fdfe=_0x132680[_0xf1ef('0x5d')](/(\r\n|\n|\r)/gm,'');_0x1764c9(null,_0x54fdfe);});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x5e')]=function(_0x31b706,_0x3a408e){scripts[_0xf1ef('0x5e')](_0x31b706['text'],_0x31b706[_0xf1ef('0x5f')]||'en',0x1)[_0xf1ef('0x13')](function(_0x363604){_0x3a408e(null,_0x363604);})['catch'](function(_0x5427f7){_0x3a408e(_0x5427f7);});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x60')]=function(_0x39357b,_0x1677f3){scripts[_0xf1ef('0x60')](this[_0xf1ef('0xd')][_0xf1ef('0x39')],_0x39357b[_0xf1ef('0x61')],_0x39357b[_0xf1ef('0x62')],_0x39357b[_0xf1ef('0x63')]||'en')[_0xf1ef('0x13')](function(_0x1df06b){_0x1677f3(null,_0x1df06b);})[_0xf1ef('0x15')](function(_0xd5d4ba){_0x1677f3(_0xd5d4ba);});};AGIVertices['prototype'][_0xf1ef('0x64')]=function(_0x31f4d5,_0x217259){scripts[_0xf1ef('0x64')](this[_0xf1ef('0xd')],_0x31f4d5)[_0xf1ef('0x13')](function(_0x2979b5){_0x217259(null,_0x2979b5);})[_0xf1ef('0x15')](function(_0x5a39dc){_0x217259(_0x5a39dc);});};AGIVertices[_0xf1ef('0x10')]['ispeechTTS']=function(_0x1cfbe1,_0x53ee5b){scripts['ispeechTTS'](_0x1cfbe1[_0xf1ef('0x61')],_0x1cfbe1[_0xf1ef('0x62')],_0x1cfbe1[_0xf1ef('0x65')]||'en-US',_0x1cfbe1[_0xf1ef('0x66')])[_0xf1ef('0x13')](function(_0x3ef0a8){_0x53ee5b(null,_0x3ef0a8);})[_0xf1ef('0x15')](function(_0x19739c){_0x53ee5b(_0x19739c);});};AGIVertices['prototype'][_0xf1ef('0x67')]=function(_0xa2199b,_0x4c2199,_0x3dc8d7){scripts[_0xf1ef('0x67')](_0x4c2199,_0xa2199b[_0xf1ef('0x61')],_0xa2199b[_0xf1ef('0x68')]||_0xf1ef('0x69'),this['isConfigured'](_0xa2199b[_0xf1ef('0x6a')])?_0xa2199b[_0xf1ef('0x6a')]:undefined)[_0xf1ef('0x13')](function(_0x2ed236){_0x3dc8d7(null,_0x2ed236);})['catch'](function(_0x3b6151){_0x3dc8d7(_0x3b6151);});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x6b')]=function(_0x5e2c13,_0x41bc3e){scripts[_0xf1ef('0x6b')](_0x5e2c13[_0xf1ef('0x6c')],_0x5e2c13[_0xf1ef('0x6d')],_0x5e2c13['aws_polly_region'],_0x5e2c13[_0xf1ef('0x6e')]||_0xf1ef('0x6f'),_0x5e2c13[_0xf1ef('0x62')],_0x5e2c13[_0xf1ef('0x70')]||_0xf1ef('0x62'))[_0xf1ef('0x13')](function(_0x151857){_0x41bc3e(null,_0x151857);})[_0xf1ef('0x15')](function(_0x16c02d){_0x41bc3e(_0x16c02d);});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x71')]=function(_0x5d5fbd,_0x331b51){scripts[_0xf1ef('0x71')](this[_0xf1ef('0xd')][_0xf1ef('0x39')],_0x5d5fbd[_0xf1ef('0x6c')],_0x5d5fbd[_0xf1ef('0x6d')],_0x5d5fbd[_0xf1ef('0x72')],_0x5d5fbd[_0xf1ef('0x62')],_0x5d5fbd[_0xf1ef('0x73')])[_0xf1ef('0x13')](function(_0x2aaae1){_0x331b51(null,_0x2aaae1);})[_0xf1ef('0x15')](function(_0x1b9e69){_0x331b51(_0x1b9e69);});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x74')]=function(_0x4f5a94,_0xa843d4,_0x127656){scripts[_0xf1ef('0x74')](_0xa843d4,_0x4f5a94['key'],_0x4f5a94[_0xf1ef('0x75')]||_0xf1ef('0x69'))[_0xf1ef('0x13')](function(_0x124f13){_0x127656(null,_0x124f13);})[_0xf1ef('0x15')](function(_0x32bb79){_0x127656(_0x32bb79);});};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x76')]=function(_0x1b0a94,_0x377228,_0x3be0d3){scripts[_0xf1ef('0x76')](_0x377228,_0x1b0a94['appid'],_0x1b0a94['appsecret'],_0x1b0a94['uri'])[_0xf1ef('0x13')](function(_0x512d78){_0x3be0d3(null,_0x512d78);})[_0xf1ef('0x15')](function(_0x4bb6eb){_0x3be0d3(_0x4bb6eb);});};AGIVertices['prototype'][_0xf1ef('0x77')]=function(_0x5aa695){var _0x5c9584=_['includes'](verticesWithRetry,_0x5aa695[_0xf1ef('0x3b')])?_0x5aa695:_['clone'](_0x5aa695);for(var _0x2c1805 in _0x5c9584){if(_0x5c9584[_0xf1ef('0x78')](_0x2c1805)){if(_0x5c9584[_0x2c1805]&&_[_0xf1ef('0x79')](_0x5c9584[_0x2c1805])){_0x5c9584[_0x2c1805]=this[_0xf1ef('0x7a')](_0x5c9584[_0x2c1805]);}}}return _0x5c9584;};AGIVertices['prototype'][_0xf1ef('0x7a')]=function(_0x41f695){var _0x2fcfb7=_0x41f695[_0xf1ef('0x7b')]('{');for(var _0x5dc4f8=0x1;_0x5dc4f8<_0x2fcfb7[_0xf1ef('0x7c')];_0x5dc4f8+=0x1){var _0xd57f7d=_0x2fcfb7[_0x5dc4f8][_0xf1ef('0x7b')]('}');if(_0xd57f7d['length']>0x1){_0x41f695=_0x41f695[_0xf1ef('0x7d')]('{'+_0xd57f7d[0x0]+'}',this[_0xf1ef('0xd')][_0xf1ef('0x11')](_0xd57f7d[0x0])[_0xf1ef('0x7e')]||_0xd57f7d[0x0]);}}if(_0x2fcfb7[_0xf1ef('0x7c')]===0x1){return _0x41f695['toString']();}return this['replaceAllVariables'](_0x41f695);};AGIVertices[_0xf1ef('0x10')]['getAndSetVariable']=function(_0x30ae5c,_0x1e319a){var _0x4c60f7=this[_0xf1ef('0xd')]['getVariable'](_0x30ae5c);if(_0x4c60f7[_0xf1ef('0x7f')]===-0x1){return _0x4c60f7;}logger['info'](util[_0xf1ef('0x2a')](_0xf1ef('0x80'),_0x1e319a,_0x4c60f7[_0xf1ef('0x7e')]));return this[_0xf1ef('0xd')][_0xf1ef('0x81')](_0x1e319a,_0x4c60f7[_0xf1ef('0x7e')]);};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x82')]=function(_0x376fb1){return _0x376fb1&&_0x376fb1!=='0'&&_0x376fb1!=='-1'&&_0x376fb1!=='';};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x83')]=function(_0x32be6f){this[_0xf1ef('0x38')][_0xf1ef('0x84')](this,_0x32be6f,'-');_0x32be6f[_0xf1ef('0x85')]=_0x32be6f[_0xf1ef('0x83')];return{'code':0xc8,'result':'-'};};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x8')]=function(_0x3b223c){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')]('Enter\x20in\x20AGI\x20(%s)\x20block',_0x3b223c[_0xf1ef('0x3a')]));return this[_0xf1ef('0xd')][_0xf1ef('0x8')]([_0x3b223c[_0xf1ef('0x86')],_0x3b223c[_0xf1ef('0x87')]]);};AGIVertices[_0xf1ef('0x10')]['answer']=function(_0x1fe040){logger['info'](util[_0xf1ef('0x2a')](_0xf1ef('0x88'),_0x1fe040[_0xf1ef('0x3a')]));if(this[_0xf1ef('0x82')](_0x1fe040[_0xf1ef('0x89')])){logger[_0xf1ef('0x2f')](util['format'](_0xf1ef('0x8a'),_0x1fe040['timeout']));var _0xffe57b=this[_0xf1ef('0xd')]['wait'](_0x1fe040['timeout']);if(_0xffe57b[_0xf1ef('0x7f')]===-0x1){return _0xffe57b;}}return this[_0xf1ef('0xd')]['answer']();};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x8b')]=function(_0x5aece3){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x8c'),_0x5aece3[_0xf1ef('0x3a')]));if(!this[_0xf1ef('0x82')](_0x5aece3[_0xf1ef('0x4c')])){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x5aece3,'no\x20list\x20selected');}_0x5aece3['scheduledAt']=moment();if(this[_0xf1ef('0x82')](_0x5aece3['delay'])){_0x5aece3['scheduledAt']=moment()[_0xf1ef('0x8d')](_0x5aece3[_0xf1ef('0x8e')],_0xf1ef('0x8f'));}if(!this['isConfigured'](_0x5aece3[_0xf1ef('0x4f')])){_0x5aece3[_0xf1ef('0x4f')]=0x2;}this[_0xf1ef('0x46')][_0xf1ef('0x84')](this,_0x5aece3);return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')]('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0x5aece3[_0xf1ef('0x4b')],_0x5aece3[_0xf1ef('0x4c')],_0x5aece3['scheduledAt']));};AGIVertices['prototype']['custom_app']=function(_0x66cbd3){logger[_0xf1ef('0x2f')](util['format'](_0xf1ef('0x91'),_0x66cbd3[_0xf1ef('0x3a')]));var _0x24014d=this[_0xf1ef('0xd')]['exec'](_0x66cbd3[_0xf1ef('0x92')],_0x66cbd3[_0xf1ef('0x93')]);if(_0x24014d[_0xf1ef('0x7f')]===-0x1){return _0x24014d;}return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0x94'),_0x66cbd3[_0xf1ef('0x92')],_0x66cbd3[_0xf1ef('0x93')]));};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x95')]=function(_0x16941e){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x96'),_0x16941e['label']));if(!this[_0xf1ef('0x82')](_0x16941e[_0xf1ef('0x62')])){return this[_0xf1ef('0xd')][_0xf1ef('0x90')]('no\x20text\x20configured');}var _0x34fb83='\x22'+_0x16941e[_0xf1ef('0x62')]+'\x22';if(this['isConfigured'](_0x16941e[_0xf1ef('0x93')])){_0x34fb83+=','+_0x16941e['options'];}var _0x209fcb=this[_0xf1ef('0xd')][_0xf1ef('0x5b')](_0xf1ef('0x97'),_0x34fb83);if(_0x209fcb[_0xf1ef('0x7f')]===-0x1){return _0x209fcb;}return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util['format'](_0xf1ef('0x98'),_0x34fb83));};AGIVertices[_0xf1ef('0x10')]['sestektts']=function(_0x4c348f){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')]('Enter\x20in\x20SESTEKTTS\x20(%s)\x20block',_0x4c348f[_0xf1ef('0x3a')]));if(!this[_0xf1ef('0x82')](_0x4c348f[_0xf1ef('0x62')])){return this['channel'][_0xf1ef('0x90')](_0xf1ef('0x99'));}var _0x5f4ef2='\x22'+_0x4c348f['text']+'\x22';if(this[_0xf1ef('0x82')](_0x4c348f[_0xf1ef('0x93')])){_0x5f4ef2+=','+_0x4c348f[_0xf1ef('0x93')];}var _0x52724b=this['channel'][_0xf1ef('0x5b')]('MRCPSynth',_0x5f4ef2);if(_0x52724b['result']===-0x1){return _0x52724b;}return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')]('Executed\x20command\x20MRCPSynth\x20%s',_0x5f4ef2));};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x9a')]=function(_0x5e6399){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x9b'),_0x5e6399[_0xf1ef('0x3a')]));if(!this[_0xf1ef('0x82')](_0x5e6399[_0xf1ef('0x9c')])){return this[_0xf1ef('0xd')][_0xf1ef('0x90')](_0xf1ef('0x9d'));}var _0x355b5b=_0x5e6399[_0xf1ef('0x9c')];if(this[_0xf1ef('0x82')](_0x5e6399['options'])){_0x355b5b+=','+_0x5e6399[_0xf1ef('0x93')];}var _0x14ddc5=this['channel'][_0xf1ef('0x5b')](_0xf1ef('0x9e'),_0x355b5b);if(_0x14ddc5[_0xf1ef('0x7f')]===-0x1){return _0x14ddc5;}var _0x31cd5c=this['getAndSetVariable']('RECOG_CONFIDENCE()',_0xf1ef('0x9f'));if(_0x31cd5c[_0xf1ef('0x7f')]===-0x1){return _0x31cd5c;}var _0x2ac393=this[_0xf1ef('0xa0')](_0xf1ef('0xa1'),'LUMENVOX_ASR_TRANSCRIPT');if(_0x2ac393[_0xf1ef('0x7f')]===-0x1){return _0x2ac393;}var _0x143f67=this[_0xf1ef('0xa0')](_0xf1ef('0xa2'),_0xf1ef('0xa3'));if(_0x143f67[_0xf1ef('0x7f')]===-0x1){return _0x143f67;}return this[_0xf1ef('0xd')]['noop'](util[_0xf1ef('0x2a')](_0xf1ef('0xa4'),_0x355b5b));};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0xa5')]=function(_0x5012a6){logger[_0xf1ef('0x2f')](util['format'](_0xf1ef('0xa6'),_0x5012a6[_0xf1ef('0x3a')]));if(!this[_0xf1ef('0x82')](_0x5012a6[_0xf1ef('0x9c')])){return this['channel'][_0xf1ef('0x90')](_0xf1ef('0x9d'));}var _0xe4e364=_0x5012a6['grammar'];if(this[_0xf1ef('0x82')](_0x5012a6[_0xf1ef('0x93')])){_0xe4e364+=','+_0x5012a6['options'];}var _0xed698f=this[_0xf1ef('0xd')][_0xf1ef('0x5b')](_0xf1ef('0x9e'),_0xe4e364);if(_0xed698f['result']===-0x1){return _0xed698f;}var _0x3a3156=this[_0xf1ef('0xa0')](_0xf1ef('0xa7'),_0xf1ef('0xa8'));if(_0x3a3156[_0xf1ef('0x7f')]===-0x1){return _0x3a3156;}var _0x30869e=this[_0xf1ef('0xa0')]('RECOG_INPUT()',_0xf1ef('0xa9'));if(_0x30869e[_0xf1ef('0x7f')]===-0x1){return _0x30869e;}var _0x6d61e8=this[_0xf1ef('0xa0')]('RECOG_INSTANCE()',_0xf1ef('0xaa'));if(_0x6d61e8['result']===-0x1){return _0x6d61e8;}return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0xa4'),_0xe4e364));};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0xab')]=function(_0x4eeab1){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')]('Enter\x20in\x20DATABASE\x20(%s)\x20block',_0x4eeab1['label']));if(!this[_0xf1ef('0x82')](_0x4eeab1[_0xf1ef('0xac')])){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x4eeab1,_0xf1ef('0xad'));}var _0x10e30c=this[_0xf1ef('0x18')]['sync'](this,_0x4eeab1[_0xf1ef('0xac')]);if(!_0x10e30c){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x4eeab1,_0xf1ef('0xae'));}if(!this[_0xf1ef('0x82')](_0x4eeab1['query'])){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x4eeab1,_0xf1ef('0xaf'));}var _0x495801=_0x4eeab1[_0xf1ef('0x30')][_0xf1ef('0x5d')](/(\r\n|\n|\r)/gm,'\x20');this['channel'][_0xf1ef('0x90')](util[_0xf1ef('0x2a')]('query:\x20%s',_0x495801));var _0x45efd9=this[_0xf1ef('0x2c')]['sync'](this,_0x10e30c,_0x495801);this['createSquareDetailsReport'][_0xf1ef('0x84')](this,_0x4eeab1,_0x495801);if(!this['isConfigured'](_0x4eeab1[_0xf1ef('0xb0')])){return this[_0xf1ef('0xd')]['noop']('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x30794c=this['getVariable'][_0xf1ef('0x84')](this,_0x4eeab1[_0xf1ef('0xb0')]);if(!_0x30794c){return this[_0xf1ef('0xd')]['error'](_0x4eeab1,_0xf1ef('0xb1'));}var _0x2417e9=this;_0x45efd9[_0xf1ef('0xb2')](function(_0x5708e8,_0x580929){Object[_0xf1ef('0xb3')](_0x5708e8)[_0xf1ef('0xb2')](function(_0x351815){_0x2417e9[_0xf1ef('0xd')][_0xf1ef('0x81')](util[_0xf1ef('0x2a')](_0xf1ef('0xb4'),_0x30794c,_0x580929,_0x351815),_0x5708e8[_0x351815]);});});this[_0xf1ef('0xd')]['setVariable'](util[_0xf1ef('0x2a')](_0xf1ef('0xb5'),_0x30794c),_0x45efd9[_0xf1ef('0x7c')]);return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util['format']('variable\x20%s\x20set',_0x30794c));};AGIVertices[_0xf1ef('0x10')]['dial']=function(_0x2bdcc0){logger[_0xf1ef('0xb6')](util[_0xf1ef('0x2a')]('Enter\x20in\x20DIAL\x20(%s)\x20block',_0x2bdcc0['label']));if(!this[_0xf1ef('0x82')](_0x2bdcc0['sip_id'])){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x2bdcc0,_0xf1ef('0xb7'));}var _0x794a16=this[_0xf1ef('0x1b')]['sync'](this,_0x2bdcc0[_0xf1ef('0xb8')]);if(!_0x794a16){return this['channel'][_0xf1ef('0x2d')](_0x2bdcc0,_0xf1ef('0xb9'));}var _0x37c5e7=this[_0xf1ef('0xd')][_0xf1ef('0x5b')](_0xf1ef('0xba'),[util[_0xf1ef('0x2a')](_0xf1ef('0xbb'),_0x794a16),_0x2bdcc0[_0xf1ef('0x89')],_0x2bdcc0[_0xf1ef('0xbc')],_0x2bdcc0[_0xf1ef('0xbd')]]);if(_0x37c5e7[_0xf1ef('0x7f')]===-0x1){return _0x37c5e7;}return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util['format'](_0xf1ef('0xbe'),_0xf1ef('0xba')));};AGIVertices['prototype']['dialogflow']=function(_0x325c0f){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0xbf'),_0x325c0f[_0xf1ef('0x3a')]));if(!this[_0xf1ef('0x82')](_0x325c0f[_0xf1ef('0x61')])){return this[_0xf1ef('0xd')][_0xf1ef('0x90')](_0xf1ef('0xc0'));}if(!this['isConfigured'](_0x325c0f[_0xf1ef('0x62')])){return this['channel'][_0xf1ef('0x90')](_0xf1ef('0x99'));}this[_0xf1ef('0xd')][_0xf1ef('0xc1')]=!![];this[_0xf1ef('0x38')](_0x325c0f);this[_0xf1ef('0x45')](_0x325c0f[_0xf1ef('0x62')],'in');this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')]('Trying\x20Dialogflow:\x20%s',_0x325c0f[_0xf1ef('0x62')]));var _0x550cb5=this[_0xf1ef('0x60')][_0xf1ef('0x84')](this,_0x325c0f);if(_0x550cb5){for(var _0x3a7c6d in _0x550cb5){if(_0x550cb5[_0xf1ef('0x78')](_0x3a7c6d)){this[_0xf1ef('0xd')][_0xf1ef('0x81')](util['format']('DIALOGFLOW_%s',_0x3a7c6d[_0xf1ef('0xc2')]()),_0x550cb5[_0x3a7c6d]);}}this[_0xf1ef('0x45')](_0x550cb5[_0xf1ef('0xc3')],_0xf1ef('0xc4'));return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0xc5'),_0x550cb5[_0xf1ef('0xc3')]));}return this['channel'][_0xf1ef('0x2d')](_0x325c0f,_0xf1ef('0xc6'));};AGIVertices[_0xf1ef('0x10')]['sesteknda']=function(_0x996f19){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0xc7'),_0x996f19[_0xf1ef('0x3a')]));if(!this[_0xf1ef('0x82')](_0x996f19[_0xf1ef('0xc8')])){return this[_0xf1ef('0xd')][_0xf1ef('0x90')](_0xf1ef('0xc9'));}if(!this[_0xf1ef('0x82')](_0x996f19[_0xf1ef('0xca')])){return this[_0xf1ef('0xd')][_0xf1ef('0x90')](_0xf1ef('0xcb'));}if(!this[_0xf1ef('0x82')](_0x996f19[_0xf1ef('0xcc')])){return this[_0xf1ef('0xd')][_0xf1ef('0x90')]('no\x20password\x20configured');}if(!this['isConfigured'](_0x996f19[_0xf1ef('0xcd')])){return this[_0xf1ef('0xd')]['noop'](_0xf1ef('0x99'));}this['channel'][_0xf1ef('0xc1')]=!![];this['createSquareDetailsReport'](_0x996f19);this['createSquareMessage'](_0x996f19[_0xf1ef('0x62')],'in');this[_0xf1ef('0xd')]['noop'](util[_0xf1ef('0x2a')](_0xf1ef('0xce'),_0x996f19[_0xf1ef('0x62')]));var _0x1f4faf=this[_0xf1ef('0x64')][_0xf1ef('0x84')](this,_0x996f19);if(_0x1f4faf){for(var _0x52e6fd in _0x1f4faf){if(_0x1f4faf[_0xf1ef('0x78')](_0x52e6fd)){this[_0xf1ef('0xd')][_0xf1ef('0x81')](util['format']('SESTEK_NDA_%s',_0x52e6fd['toUpperCase']()),_0x1f4faf[_0x52e6fd]);}}this[_0xf1ef('0x45')](_0x1f4faf[_0xf1ef('0xc3')],_0xf1ef('0xc4'));if(_0x1f4faf[_0xf1ef('0xcf')]){this[_0xf1ef('0xd')]['noop'](util[_0xf1ef('0x2a')](_0xf1ef('0xd0'),_0x1f4faf[_0xf1ef('0xcf')]));var _0x2d3f32=this['channel'][_0xf1ef('0xd1')](_0x1f4faf[_0xf1ef('0xcf')]);try{fs['unlink'](_0x1f4faf['audiofile']+_0xf1ef('0xd2'));}catch(_0x81759){logger[_0xf1ef('0x2d')](_0x81759);}return _0x2d3f32;}else{return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0xd3'),_0x1f4faf[_0xf1ef('0xc3')]));}}return this[_0xf1ef('0xd')]['error'](_0x996f19,_0xf1ef('0xd4'));};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0xd5')]=function(_0x3482c1){logger[_0xf1ef('0x2f')](util['format'](_0xf1ef('0xd6'),_0x3482c1[_0xf1ef('0x3a')]));return this[_0xf1ef('0xd')][_0xf1ef('0x90')](_0xf1ef('0xd5'));};AGIVertices[_0xf1ef('0x10')]['ext_dial']=function(_0x265032){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')]('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0x265032['label']));var _0x17ef06='';if(_0x265032[_0xf1ef('0xd7')]){if(!this[_0xf1ef('0x82')](_0x265032[_0xf1ef('0xd7')])){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x265032,_0xf1ef('0xd8'));}else{var _0x1eb7bf=parseInt(_0x265032[_0xf1ef('0xd7')],0xa);if(isNaN(_0x1eb7bf)){_0x17ef06=_0x265032[_0xf1ef('0xd7')];}else{_0x17ef06=this['getTrunk'][_0xf1ef('0x84')](this,_0x265032[_0xf1ef('0xd7')]);if(!_0x17ef06){return this['channel'][_0xf1ef('0x2d')](_0x265032,_0xf1ef('0xd9'));}}}}else if(_0x265032[_0xf1ef('0xda')]){_0x17ef06=_0x265032['trunk_name'];}else{return this[_0xf1ef('0xd')]['error'](_0x265032,_0xf1ef('0xd8'));}var _0x517ca6=this[_0xf1ef('0xd')][_0xf1ef('0x5b')]('DIAL',[util[_0xf1ef('0x2a')](_0xf1ef('0xdb'),_0x17ef06,_0x265032[_0xf1ef('0x4b')]),_0x265032[_0xf1ef('0x89')],_0x265032[_0xf1ef('0xbc')],_0x265032[_0xf1ef('0xbd')]]);if(_0x517ca6[_0xf1ef('0x7f')]===-0x1){return _0x517ca6;}return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util['format'](_0xf1ef('0xbe'),_0xf1ef('0xba')));};AGIVertices[_0xf1ef('0x10')]['finally']=function(_0xfe28ed){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0xdc'),_0xfe28ed['label']));return this[_0xf1ef('0xd')][_0xf1ef('0x90')](_0xf1ef('0xdd'));};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0xb')]=function(_0x621054){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')]('Enter\x20in\x20GETDIGITS\x20(%s)\x20block',_0x621054[_0xf1ef('0x3a')]));if(_0x621054[_0xf1ef('0x85')]===0x0){return this[_0xf1ef('0x83')](_0x621054);}_0x621054[_0xf1ef('0x85')]-=0x1;if(!this[_0xf1ef('0x82')](_0x621054[_0xf1ef('0xde')])){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x621054,'no\x20file\x20audio\x20selected');}var _0x48615c=this[_0xf1ef('0x1f')][_0xf1ef('0x84')](this,_0x621054[_0xf1ef('0xde')]);if(!_0x48615c){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x621054,_0xf1ef('0xdf'));}if(!this[_0xf1ef('0x82')](_0x621054['variable_id'])){return this['channel'][_0xf1ef('0x2d')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x505f3d=this['channel'][_0xf1ef('0xe0')](_0x48615c,_0x621054[_0xf1ef('0xe1')],_0x621054[_0xf1ef('0xe2')]);var _0x2dfdc6=_0x505f3d[_0xf1ef('0x7f')]?_0x505f3d[_0xf1ef('0x7f')][_0xf1ef('0xe3')]():'';logger['info']('test',JSON[_0xf1ef('0xe4')](_0x505f3d));if(_0x505f3d['result']===-0x1){this[_0xf1ef('0x38')][_0xf1ef('0x84')](this,_0x621054,_0x2dfdc6);return _0x505f3d;}else if(_0x505f3d[_0xf1ef('0x7e')]===_0xf1ef('0x89')){_0x505f3d[_0xf1ef('0x7f')]=_0x2dfdc6[_0xf1ef('0x7c')]>=parseInt(_0x621054[_0xf1ef('0xe5')])?'x':'i';}else{_0x505f3d[_0xf1ef('0x7f')]=_0x2dfdc6['length']>=parseInt(_0x621054[_0xf1ef('0xe5')])&&_0x2dfdc6[_0xf1ef('0x7c')]<=parseInt(_0x621054[_0xf1ef('0xe2')])?'x':'i';}var _0x1a14f4=this[_0xf1ef('0x11')][_0xf1ef('0x84')](this,_0x621054[_0xf1ef('0xb0')]);if(!_0x1a14f4){return this['channel'][_0xf1ef('0x2d')](_0x621054,_0xf1ef('0xb1'));}this[_0xf1ef('0xd')][_0xf1ef('0x81')](_0x1a14f4,_0x2dfdc6);if(this[_0xf1ef('0x82')](_0x621054[_0xf1ef('0xe6')])){var _0x2d3423=parseInt(_0x621054[_0xf1ef('0xe6')],0xa);var _0x384f2a=rs[_0xf1ef('0xe7')]({'charset':'*','length':_0x2d3423});var _0x2aedfe=_0x2dfdc6[_0xf1ef('0x7c')];if(_0x2aedfe>0x0){if(_0x2aedfe>_0x2d3423){this[_0xf1ef('0x38')][_0xf1ef('0x84')](this,_0x621054,_0x621054[_0xf1ef('0xe8')]==='first'?_0x384f2a+_0x2dfdc6[_0xf1ef('0xe9')](_0x2d3423):_0x2dfdc6['substr'](0x0,_0x2aedfe-_0x2d3423)+_0x384f2a);}else{this[_0xf1ef('0x38')][_0xf1ef('0x84')](this,_0x621054,rs[_0xf1ef('0xe7')]({'charset':'*','length':_0x2aedfe}));}}else{this[_0xf1ef('0x38')][_0xf1ef('0x84')](this,_0x621054,'');}}else{this[_0xf1ef('0x38')][_0xf1ef('0x84')](this,_0x621054,_0x2dfdc6);}return _0x505f3d;};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0xc')]=function(_0x983a72){logger[_0xf1ef('0x2f')](util['format'](_0xf1ef('0xea'),_0x983a72[_0xf1ef('0x3a')]));return this[_0xf1ef('0xb')](_0x983a72);};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0xeb')]=function(_0x56a64d){logger[_0xf1ef('0x2f')](util['format']('Enter\x20in\x20GOAL\x20(%s)\x20block',_0x56a64d[_0xf1ef('0x3a')]));this[_0xf1ef('0x38')][_0xf1ef('0x84')](this,_0x56a64d,_0x56a64d['goalname']);return this[_0xf1ef('0xd')]['noop'](util[_0xf1ef('0x2a')](_0xf1ef('0xec'),_0x56a64d['goalname']));};AGIVertices['prototype']['awspolly']=function(_0x364176){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0xed'),_0x364176[_0xf1ef('0x3a')]));if(!this[_0xf1ef('0x82')](_0x364176[_0xf1ef('0x6c')])||!this[_0xf1ef('0x82')](_0x364176['aws_secret_access_key'])){return this['channel']['noop']('no\x20valid\x20credentials\x20configured');}if(!this[_0xf1ef('0x82')](_0x364176['text'])){return this[_0xf1ef('0xd')][_0xf1ef('0x90')](_0xf1ef('0x99'));}this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0xee'),_0x364176[_0xf1ef('0x62')]));var _0x291cc1=this[_0xf1ef('0x6b')][_0xf1ef('0x84')](this,_0x364176);if(_0x291cc1){this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')]('aws\x20Polly\x20%s\x20file\x20created',_0x291cc1));var _0x51fc80=this[_0xf1ef('0xd')][_0xf1ef('0xd1')](_0x291cc1);try{fs['unlink'](_0x291cc1+_0xf1ef('0xd2'));}catch(_0x39b905){logger['error'](_0x39b905);}return _0x51fc80;}return this[_0xf1ef('0xd')]['error'](_0x364176,_0xf1ef('0xef'));};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0xf0')]=function(_0x7a6d86){logger[_0xf1ef('0x2f')](util['format'](_0xf1ef('0xf1'),_0x7a6d86[_0xf1ef('0x3a')]));if(!this[_0xf1ef('0x82')](_0x7a6d86['aws_access_key_id'])||!this[_0xf1ef('0x82')](_0x7a6d86['aws_secret_access_key'])){return this['channel'][_0xf1ef('0x90')](_0xf1ef('0xf2'));}if(!this[_0xf1ef('0x82')](_0x7a6d86[_0xf1ef('0x73')])){return this[_0xf1ef('0xd')]['noop'](_0xf1ef('0xf3'));}if(!this[_0xf1ef('0x82')](_0x7a6d86[_0xf1ef('0x62')])){return this[_0xf1ef('0xd')][_0xf1ef('0x90')]('no\x20text\x20configured');}this[_0xf1ef('0xd')][_0xf1ef('0xc1')]=!![];this[_0xf1ef('0x38')](_0x7a6d86);this[_0xf1ef('0x45')](_0x7a6d86[_0xf1ef('0x62')],'in');this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0xf4'),_0x7a6d86[_0xf1ef('0x62')]));var _0x14f6d1=this['awsLex']['sync'](this,_0x7a6d86);if(_0x14f6d1){for(var _0x2ae30c in _0x14f6d1){if(_0x14f6d1['hasOwnProperty'](_0x2ae30c)&&_['isString'](_0x14f6d1[_0x2ae30c])){this[_0xf1ef('0xd')][_0xf1ef('0x81')](util[_0xf1ef('0x2a')](_0xf1ef('0xf5'),_0x2ae30c[_0xf1ef('0xc2')]()),_0x14f6d1[_0x2ae30c]);}}if(_['isNil'](_0x14f6d1[_0xf1ef('0xf6')])){return this['channel'][_0xf1ef('0x90')](_0xf1ef('0xf7'));}else{this[_0xf1ef('0x45')](_0x14f6d1[_0xf1ef('0xf6')],_0xf1ef('0xc4'));return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')]('Amazon\x20Lex\x20Result\x20%s',_0x14f6d1['message']));}}return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x7a6d86,'Amazon\x20Lex\x20is\x20unreachable');};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0xf8')]=function(_0x2c7286){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')]('Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s',_0x2c7286[_0xf1ef('0x3a')],_0x2c7286[_0xf1ef('0x89')]));if(!this[_0xf1ef('0x82')](_0x2c7286['key'])){return this['channel'][_0xf1ef('0x90')]('no\x20key\x20configured');}var _0x305799=_0xf1ef('0xf9');var _0x364777=util[_0xf1ef('0x2a')](_0xf1ef('0xfa'),FILES_PATH,rs['generate'](0x4));var _0x50e3a6=util[_0xf1ef('0x2a')](_0xf1ef('0xfb'),_0x364777,_0x305799);var _0x1c9adc=!![];if(_0x2c7286[_0xf1ef('0xfc')]===_0xf1ef('0xfd')){_0x1c9adc=![];}var _0x15b3a9=this['channel'][_0xf1ef('0xfe')](_0x364777,_0x305799,_0x2c7286[_0xf1ef('0xff')],_0x2c7286[_0xf1ef('0x89')],undefined,_0x1c9adc);if(_0x15b3a9['result']!==-0x1){this[_0xf1ef('0xd')]['noop'](util[_0xf1ef('0x2a')]('google\x20%s\x20file\x20created',_0x50e3a6));var _0x4ec6bc=this[_0xf1ef('0x74')]['sync'](this,_0x2c7286,_0x50e3a6);if(_0x4ec6bc){for(var _0x4331de in _0x4ec6bc){if(_0x4ec6bc[_0xf1ef('0x78')](_0x4331de)){this[_0xf1ef('0xd')]['setVariable'](util[_0xf1ef('0x2a')](_0xf1ef('0x100'),_0x4331de[_0xf1ef('0xc2')]()),_0x4ec6bc[_0x4331de]);}}return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0x101'),JSON[_0xf1ef('0xe4')](_0x4ec6bc)));}}return _0x15b3a9;};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x102')]=function(_0x461985){logger['info'](util[_0xf1ef('0x2a')]('Enter\x20in\x20TILDEASR\x20(%s)\x20block',_0x461985[_0xf1ef('0x3a')]));if(!this['isConfigured'](_0x461985['appid'])){return this[_0xf1ef('0xd')][_0xf1ef('0x90')](_0xf1ef('0x103'));}if(!this[_0xf1ef('0x82')](_0x461985[_0xf1ef('0x104')])){return this['channel'][_0xf1ef('0x90')]('no\x20appsecret\x20configured');}var _0x2b2acd=_0xf1ef('0xf9');var _0x12cee8=util['format'](_0xf1ef('0xfa'),FILES_PATH,rs['generate'](0x4));var _0x559c11=util[_0xf1ef('0x2a')]('%s.%s',_0x12cee8,_0x2b2acd);var _0x2138cc=!![];if(_0x461985[_0xf1ef('0xfc')]==='NOBEEP'){_0x2138cc=![];}var _0x2c2c88=this['channel']['recordFile'](_0x12cee8,_0x2b2acd,_0x461985[_0xf1ef('0xff')],_0x461985[_0xf1ef('0x89')],undefined,_0x2138cc);if(_0x2c2c88['result']!==-0x1){this['channel'][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0x105'),_0x559c11));var _0x10597d=this[_0xf1ef('0x76')][_0xf1ef('0x84')](this,_0x461985,_0x559c11);if(_0x10597d){for(var _0x5ac03c in _0x10597d){if(_0x10597d[_0xf1ef('0x78')](_0x5ac03c)){this[_0xf1ef('0xd')][_0xf1ef('0x81')](util['format'](_0xf1ef('0x106'),_0x5ac03c[_0xf1ef('0xc2')]()),_0x10597d[_0x5ac03c]);}}return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')]('TildeASR\x20Result\x20%s',JSON[_0xf1ef('0xe4')](_0x10597d)));}}return _0x2c2c88;};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x107')]=function(_0x5bcd74){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x108'),_0x5bcd74[_0xf1ef('0x3a')]));return this[_0xf1ef('0xd')][_0xf1ef('0x109')](_0x5bcd74['context'],_0x5bcd74[_0xf1ef('0x10a')],_0x5bcd74['priority']);};AGIVertices['prototype'][_0xf1ef('0x10b')]=function(_0x56d362){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')]('Enter\x20in\x20GOTOIF\x20(%s)\x20block',_0x56d362[_0xf1ef('0x3a')]));if(!this[_0xf1ef('0x82')](_0x56d362[_0xf1ef('0x10c')])){return this['channel'][_0xf1ef('0x2d')](_0x56d362,'no\x20condition\x20configured');}try{var _0xa2af41=eval(_0x56d362[_0xf1ef('0x10c')])?_0xf1ef('0x10d'):_0xf1ef('0x10e');this['channel']['noop'](util[_0xf1ef('0x2a')]('EVAL\x20CONDITION\x20%s\x20%s',_0x56d362['condition'],_0xa2af41));return{'code':0xc8,'result':_0xa2af41};}catch(_0x3d15ac){return{'code':0xc8,'result':'false'};}};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x10f')]=function(_0x230ce5){logger['info'](util[_0xf1ef('0x2a')](_0xf1ef('0x110'),_0x230ce5[_0xf1ef('0x3a')]));if(!this[_0xf1ef('0x82')](_0x230ce5['interval_id'])){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x230ce5,_0xf1ef('0x111'));}var _0x41d465=this[_0xf1ef('0x23')][_0xf1ef('0x84')](this,_0x230ce5['interval_id']);if(!_0x41d465){return this['channel'][_0xf1ef('0x2d')](_0x230ce5,_0xf1ef('0x112'));}for(var _0x39ba91=0x0;_0x39ba91<_0x41d465[_0xf1ef('0x7c')];_0x39ba91+=0x1){var _0x6c87d2=this[_0xf1ef('0xd')]['getVariable'](util[_0xf1ef('0x2a')](_0xf1ef('0x113'),_0x41d465[_0x39ba91]));if(_0x6c87d2['result']===-0x1){return _0x6c87d2;}logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x114'),_0x41d465[_0x39ba91],_0x6c87d2[_0xf1ef('0x7e')]));if(_0x6c87d2[_0xf1ef('0x7e')]==='true'){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x114'),_0x41d465[_0x39ba91],'true'));this[_0xf1ef('0xd')]['noop'](util[_0xf1ef('0x2a')](_0xf1ef('0x114'),_0x41d465[_0x39ba91],_0xf1ef('0x10d')));return{'code':0xc8,'result':'true'};}else{logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x114'),_0x41d465[_0x39ba91],_0xf1ef('0x10e')));this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')]('IFTIME\x20%s\x20%s',_0x41d465[_0x39ba91],_0xf1ef('0x10e')));}}return{'code':0xc8,'result':_0xf1ef('0x10e')};};AGIVertices[_0xf1ef('0x10')]['hangup']=function(_0x54bd33){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')]('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0x54bd33[_0xf1ef('0x3a')]));return this[_0xf1ef('0xd')][_0xf1ef('0x115')]();};AGIVertices['prototype'][_0xf1ef('0x116')]=function(_0x4c09d1){logger['info'](util['format'](_0xf1ef('0x117'),_0x4c09d1['label']));if(!this['isConfigured'](_0x4c09d1[_0xf1ef('0x61')])){return this[_0xf1ef('0xd')][_0xf1ef('0x90')](_0xf1ef('0xc0'));}var _0x4be99c=_0xf1ef('0xf9');var _0xb68e88=util[_0xf1ef('0x2a')](_0xf1ef('0xfa'),FILES_PATH,rs['generate'](0x4));var _0x17a584=util['format']('%s.%s',_0xb68e88,_0x4be99c);var _0x22db4d=!![];if(_0x4c09d1[_0xf1ef('0xfc')]===_0xf1ef('0xfd')){_0x22db4d=![];}var _0x59e5d9=this['channel'][_0xf1ef('0xfe')](_0xb68e88,_0x4be99c,_0x4c09d1[_0xf1ef('0xff')],_0x4c09d1['timeout'],undefined,_0x22db4d);if(_0x59e5d9['result']!==-0x1){this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0x118'),_0x17a584));var _0x3be3ba=this['ispeechASR'][_0xf1ef('0x84')](this,_0x4c09d1,_0x17a584);if(_0x3be3ba){for(var _0x1c1b6f in _0x3be3ba){if(_0x3be3ba[_0xf1ef('0x78')](_0x1c1b6f)){this[_0xf1ef('0xd')][_0xf1ef('0x81')](util[_0xf1ef('0x2a')](_0xf1ef('0x119'),_0x1c1b6f[_0xf1ef('0xc2')]()),_0x3be3ba[_0x1c1b6f]);}}return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util['format']('IspeechASR\x20Result\x20%s',JSON[_0xf1ef('0xe4')](_0x3be3ba)));}}return _0x59e5d9;};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x11a')]=function(_0x4c68a2){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x11b'),_0x4c68a2['label']));if(!this[_0xf1ef('0x82')](_0x4c68a2[_0xf1ef('0x61')])){return this[_0xf1ef('0xd')][_0xf1ef('0x90')](_0xf1ef('0xc0'));}if(!this[_0xf1ef('0x82')](_0x4c68a2[_0xf1ef('0x62')])){return this[_0xf1ef('0xd')][_0xf1ef('0x90')]('no\x20text\x20configured');}this['channel']['noop'](util[_0xf1ef('0x2a')](_0xf1ef('0x11c'),_0x4c68a2[_0xf1ef('0x62')]));var _0x8f58f4=this[_0xf1ef('0x11d')][_0xf1ef('0x84')](this,_0x4c68a2);if(_0x8f58f4){this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0x118'),_0x8f58f4));var _0x37bb9b=this[_0xf1ef('0xd')]['streamFile'](_0x8f58f4,_0x4c68a2[_0xf1ef('0xff')]);try{fs[_0xf1ef('0x11e')](_0x8f58f4+'.wav');}catch(_0x5ee70d){logger[_0xf1ef('0x2d')](_0x5ee70d);}return _0x37bb9b;}return this[_0xf1ef('0xd')]['error'](_0x4c68a2,_0xf1ef('0x11f'));};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x120')]=function(_0x34a008){logger['info'](util[_0xf1ef('0x2a')](_0xf1ef('0x121'),_0x34a008[_0xf1ef('0x3a')]));if(!this[_0xf1ef('0x82')](_0x34a008[_0xf1ef('0x122')])){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x34a008,_0xf1ef('0x123'));}logger[_0xf1ef('0x2f')](util['format']('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xf1ef('0xd')][_0xf1ef('0x3c')],_0x34a008[_0xf1ef('0x122')]));var _0x196a45=this[_0xf1ef('0x56')]['sync'](this,_0x34a008[_0xf1ef('0x122')]);if(_0x196a45){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x124'),this[_0xf1ef('0xd')]['callerid'],_0x34a008[_0xf1ef('0x122')]));this[_0xf1ef('0xd')][_0xf1ef('0x90')](util['format'](_0xf1ef('0x124'),this[_0xf1ef('0xd')][_0xf1ef('0x3c')],_0x34a008[_0xf1ef('0x122')]));return{'code':0xc8,'result':'success'};}else{logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x125'),this['channel'][_0xf1ef('0x3c')],_0x34a008['findBy']));this[_0xf1ef('0xd')][_0xf1ef('0x90')](util['format'](_0xf1ef('0x125'),this[_0xf1ef('0xd')][_0xf1ef('0x3c')],_0x34a008[_0xf1ef('0x122')]));return{'code':0xc8,'result':_0xf1ef('0x126')};}};AGIVertices['prototype'][_0xf1ef('0x127')]=function(_0x317151){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x128'),_0x317151[_0xf1ef('0x3a')]));if(!this['isConfigured'](_0x317151[_0xf1ef('0x122')])){return this['channel'][_0xf1ef('0x2d')](_0x317151,_0xf1ef('0x123'));}logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x129'),this[_0xf1ef('0xd')][_0xf1ef('0x3c')],_0x317151[_0xf1ef('0x122')]));var _0x2f5124=this['agentLogout'][_0xf1ef('0x84')](this,_0x317151[_0xf1ef('0x122')]);if(_0x2f5124){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x124'),this[_0xf1ef('0xd')][_0xf1ef('0x3c')],_0x317151[_0xf1ef('0x122')]));this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0x124'),this['channel']['callerid'],_0x317151[_0xf1ef('0x122')]));return{'code':0xc8,'result':'success'};}else{logger['info'](util['format'](_0xf1ef('0x125'),this[_0xf1ef('0xd')][_0xf1ef('0x3c')],_0x317151[_0xf1ef('0x122')]));this[_0xf1ef('0xd')][_0xf1ef('0x90')](util['format'](_0xf1ef('0x125'),this[_0xf1ef('0xd')][_0xf1ef('0x3c')],_0x317151[_0xf1ef('0x122')]));return{'code':0xc8,'result':_0xf1ef('0x126')};}};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x12a')]=function(_0x18e49a){logger['info'](util[_0xf1ef('0x2a')](_0xf1ef('0x12b'),_0x18e49a[_0xf1ef('0x3a')]));if(!this['isConfigured'](_0x18e49a[_0xf1ef('0x12c')])){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x18e49a,_0xf1ef('0x12d'));}this['channel'][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0x12e'),_0x18e49a[_0xf1ef('0x12c')]));var _0x26b147=eval(_0x18e49a[_0xf1ef('0x12c')]);if(!this['isConfigured'](_0x18e49a['variable_id'])){return this['channel'][_0xf1ef('0x90')](_0xf1ef('0x12f'));}var _0x360bcf=this[_0xf1ef('0x11')][_0xf1ef('0x84')](this,_0x18e49a[_0xf1ef('0xb0')]);if(!_0x360bcf){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x18e49a,_0xf1ef('0xb1'));}if(_[_0xf1ef('0x130')](_0x26b147)){var _0x514d0a=this;_0x26b147[_0xf1ef('0xb2')](function(_0x5e8f40,_0x3956f2){_0x514d0a[_0xf1ef('0xd')]['setVariable'](util[_0xf1ef('0x2a')](_0xf1ef('0x131'),_0x360bcf,_0x3956f2),_0x5e8f40);});return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0x132'),_0x360bcf));}else{return this[_0xf1ef('0xd')][_0xf1ef('0x81')](_0x360bcf,_0x26b147);}};AGIVertices[_0xf1ef('0x10')]['menu']=function(_0x4d4acb){logger['info'](util[_0xf1ef('0x2a')](_0xf1ef('0x133'),_0x4d4acb[_0xf1ef('0x3a')]));if(_0x4d4acb[_0xf1ef('0x85')]===0x0){return this['maxRetry'](_0x4d4acb);}_0x4d4acb[_0xf1ef('0x85')]-=0x1;if(!this[_0xf1ef('0x82')](_0x4d4acb[_0xf1ef('0xde')])){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x4d4acb,_0xf1ef('0x134'));}var _0x29ee93=this[_0xf1ef('0x1f')]['sync'](this,_0x4d4acb[_0xf1ef('0xde')]);if(!_0x29ee93){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x4d4acb,_0xf1ef('0xdf'));}var _0x20fa39=this['channel'][_0xf1ef('0xe0')](_0x29ee93,_0x4d4acb[_0xf1ef('0xe1')],_0x4d4acb[_0xf1ef('0x135')]);var _0x418631=_0x20fa39[_0xf1ef('0x7f')];if(_0x20fa39[_0xf1ef('0x7f')]===-0x1){this[_0xf1ef('0x38')]['sync'](this,_0x4d4acb,'-1');return _0x20fa39;}else if(_0x20fa39[_0xf1ef('0x7e')]===_0xf1ef('0x89')){_0x20fa39['result']=_0x20fa39[_0xf1ef('0x7f')][_0xf1ef('0x7c')]>0x0?_0x20fa39[_0xf1ef('0x7f')]:'t';}else if(_[_0xf1ef('0x47')](_0x20fa39[_0xf1ef('0x7f')])){_0x20fa39[_0xf1ef('0x7f')]='#';_0x418631='#';}if(!this[_0xf1ef('0x82')](_0x4d4acb[_0xf1ef('0xb0')])){this['channel'][_0xf1ef('0x90')]('no\x20variable\x20selected\x20for\x20the\x20result');}else{var _0x381842=this['getVariable']['sync'](this,_0x4d4acb[_0xf1ef('0xb0')]);if(!_0x381842){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x4d4acb,_0xf1ef('0xb1'));}this['channel'][_0xf1ef('0x81')](_0x381842,_0x418631);}this['createSquareDetailsReport']['sync'](this,_0x4d4acb,_0x418631);return _0x20fa39;};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x90')]=function(_0x53845c){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x136'),_0x53845c[_0xf1ef('0x3a')]));return this[_0xf1ef('0xd')][_0xf1ef('0x90')](_0x53845c[_0xf1ef('0x137')]||_0x53845c[_0xf1ef('0x3a')]);};AGIVertices['prototype'][_0xf1ef('0x138')]=function(_0x37ca29){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')]('Enter\x20in\x20PAUSE\x20(%s)\x20block',_0x37ca29[_0xf1ef('0x3a')]));if(!this[_0xf1ef('0x82')](_0x37ca29[_0xf1ef('0x122')])){return this[_0xf1ef('0xd')]['error'](_0x37ca29,_0xf1ef('0x123'));}logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x129'),this['channel'][_0xf1ef('0x3c')],_0x37ca29[_0xf1ef('0x122')]));var _0x1551e8=this['getPause']['sync'](this,_0x37ca29['pause_id']);var _0x5461a3=this['agentPause'][_0xf1ef('0x84')](this,_0x37ca29[_0xf1ef('0x122')],_0x1551e8);if(_0x5461a3){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x124'),this[_0xf1ef('0xd')]['callerid'],_0x37ca29['findBy']));this[_0xf1ef('0xd')][_0xf1ef('0x90')](util['format'](_0xf1ef('0x124'),this[_0xf1ef('0xd')][_0xf1ef('0x3c')],_0x37ca29[_0xf1ef('0x122')]));return{'code':0xc8,'result':_0xf1ef('0x139')};}else{logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x125'),this[_0xf1ef('0xd')][_0xf1ef('0x3c')],_0x37ca29[_0xf1ef('0x122')]));this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0x124'),this[_0xf1ef('0xd')][_0xf1ef('0x3c')],_0x37ca29[_0xf1ef('0x122')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x13a')]=function(_0x4c0d06){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x13b'),_0x4c0d06['label']));if(!this[_0xf1ef('0x82')](_0x4c0d06[_0xf1ef('0xde')])){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x4c0d06,_0xf1ef('0x134'));}var _0xb38138=this[_0xf1ef('0x1f')][_0xf1ef('0x84')](this,_0x4c0d06['file_id']);if(!_0xb38138){return this['channel']['error'](_0x4c0d06,_0xf1ef('0xdf'));}var _0x5491e6=this['channel'][_0xf1ef('0x5b')]('PLAYBACK',[_0xb38138,_0x4c0d06[_0xf1ef('0xbc')]]);if(_0x5491e6[_0xf1ef('0x7f')]===-0x1){return _0x5491e6;}return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util['format']('Executed\x20command\x20%s\x20%s','PLAYBACK',_0xb38138));};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x13c')]=function(_0x634ecc){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x13d'),_0x634ecc[_0xf1ef('0x3a')]));if(!this[_0xf1ef('0x82')](_0x634ecc[_0xf1ef('0x13e')])){return this['channel'][_0xf1ef('0x2d')](_0x634ecc,_0xf1ef('0x13f'));}var _0xb4c007='';var _0x1c82d6=parseInt(_0x634ecc['queue_id'],0xa);if(isNaN(_0x1c82d6)){_0xb4c007=_0x634ecc[_0xf1ef('0x13e')];}else{_0xb4c007=this['getVoiceQueue'][_0xf1ef('0x84')](this,_0x634ecc[_0xf1ef('0x13e')]);if(!_0xb4c007){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x634ecc,_0xf1ef('0x140'));}}var _0x5d59fe='';if(this[_0xf1ef('0x82')](_0x634ecc[_0xf1ef('0xde')])){var _0x23b4ea=this[_0xf1ef('0x1f')]['sync'](this,_0x634ecc[_0xf1ef('0xde')]);if(_0x23b4ea){_0x5d59fe=_0x23b4ea;}}this['createSquareDetailsReport'][_0xf1ef('0x84')](this,_0x634ecc,_0xb4c007);if(_0x634ecc['opts'][_0xf1ef('0x141')]('x')<0x0){_0x634ecc['opts']+='x';}if(_0x634ecc[_0xf1ef('0xbc')][_0xf1ef('0x141')]('X')<0x0){_0x634ecc[_0xf1ef('0xbc')]+='X';}this[_0xf1ef('0xd')]['setVariable'](_0xf1ef('0x142'),_0xb4c007?_0xb4c007['toLowerCase']():'');var _0x226ee0=this[_0xf1ef('0xd')][_0xf1ef('0x5b')](_0xf1ef('0x143'),[_0xb4c007,_0x634ecc[_0xf1ef('0xbc')],_0x634ecc[_0xf1ef('0xbd')],_0x5d59fe,_0x634ecc[_0xf1ef('0x89')],_0x634ecc['agi'],_0x634ecc[_0xf1ef('0x144')],_0x634ecc[_0xf1ef('0x145')],'',_0x634ecc[_0xf1ef('0x146')]]);if(_0x226ee0[_0xf1ef('0x7f')]===-0x1){return _0x226ee0;}return this[_0xf1ef('0xd')]['noop'](util[_0xf1ef('0x2a')](_0xf1ef('0x94'),_0xf1ef('0x143'),_0xb4c007));};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x147')]=function(_0x5219ec){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x148'),_0x5219ec[_0xf1ef('0x3a')]));var _0x5691f3=_0x5219ec[_0xf1ef('0x149')]||_0xf1ef('0xf9');var _0x178ebe=util[_0xf1ef('0x2a')](_0xf1ef('0x14a'),this[_0xf1ef('0xd')]['uniqueid'],rs[_0xf1ef('0xe7')](0x5));var _0x2cb32f=util[_0xf1ef('0x2a')](_0xf1ef('0x14b'),FILES_PATH,_0x178ebe,_0x5691f3);var _0x262940=util[_0xf1ef('0x2a')](_0xf1ef('0xfa'),FILES_PATH,_0x178ebe);this[_0xf1ef('0x3d')][_0xf1ef('0x84')](this,_0x5219ec,_0x178ebe,_0x2cb32f);this[_0xf1ef('0xd')][_0xf1ef('0x81')](_0xf1ef('0x14c'),_0x178ebe);logger[_0xf1ef('0x2f')](_0xf1ef('0x14d'),_0x262940,_0x5691f3,_0x5219ec['escape_digits'],_0x5219ec[_0xf1ef('0x89')]);return this[_0xf1ef('0xd')][_0xf1ef('0xfe')](_0x262940,_0x5691f3,_0x5219ec[_0xf1ef('0x14e')],_0x5219ec[_0xf1ef('0x89')],undefined,!![]);};AGIVertices['prototype'][_0xf1ef('0x14f')]=function(_0x5137b4){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x150'),_0x5137b4['label']));return this[_0xf1ef('0xd')][_0xf1ef('0x151')](_0x5137b4[_0xf1ef('0x152')][_0xf1ef('0x5d')](/\s+/g,''),_0x5137b4[_0xf1ef('0x14e')]);};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x153')]=function(_0x130467){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x154'),_0x130467[_0xf1ef('0x3a')]));return this[_0xf1ef('0xd')]['sayNumber'](_0x130467['number'][_0xf1ef('0x5d')](/\s+/g,''),_0x130467[_0xf1ef('0x14e')]);};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x155')]=function(_0x471cb3){logger[_0xf1ef('0x2f')](util['format'](_0xf1ef('0x156'),_0x471cb3[_0xf1ef('0x3a')]));return this[_0xf1ef('0xd')][_0xf1ef('0x157')](_0x471cb3[_0xf1ef('0x62')],_0x471cb3['escape_digits']);};AGIVertices['prototype'][_0xf1ef('0x158')]=function(_0x23bc05){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x159'),_0x23bc05['label']));if(!this[_0xf1ef('0x82')](_0x23bc05[_0xf1ef('0x15a')])){return this[_0xf1ef('0xd')][_0xf1ef('0x90')]('no\x20mail\x20account\x20configured');}var _0x181ad7=this['getMailAccount'][_0xf1ef('0x84')](this,_0x23bc05['account_id']);if(!_0x181ad7||!_0x181ad7[_0xf1ef('0x15b')]){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x23bc05,_0xf1ef('0x15c'));}var _0x4b393e={'from':util[_0xf1ef('0x2a')]('\x22%s\x22\x20<%s>',_0x181ad7['name'],_0x181ad7[_0xf1ef('0x15d')]||_0x181ad7[_0xf1ef('0x15b')][_0xf1ef('0x15e')]),'to':_0x23bc05['to']||'','cc':_0x23bc05['cc']||'','bcc':_0x23bc05['bcc']||'','subject':_0x23bc05[_0xf1ef('0x15f')],'html':_0x23bc05[_0xf1ef('0x62')],'text':_0x23bc05[_0xf1ef('0x62')]};var _0x4652d7={'tls':{'rejectUnauthorized':![]}};if(_0x181ad7[_0xf1ef('0x15b')][_0xf1ef('0x160')]){_0x4652d7[_0xf1ef('0x160')]=_0x181ad7['Smtp'][_0xf1ef('0x160')];}else{_0x4652d7[_0xf1ef('0x161')]=_0x181ad7['Smtp'][_0xf1ef('0x161')];_0x4652d7[_0xf1ef('0x162')]=_0x181ad7['Smtp'][_0xf1ef('0x162')];_0x4652d7[_0xf1ef('0x163')]=_0x181ad7['Smtp'][_0xf1ef('0x163')];}if(_0x181ad7[_0xf1ef('0x15b')]['authentication']){_0x4652d7[_0xf1ef('0x164')]={'user':_0x181ad7['Smtp'][_0xf1ef('0x15e')],'pass':_0x181ad7[_0xf1ef('0x15b')][_0xf1ef('0x165')]};}if(this[_0xf1ef('0x82')](_0x23bc05[_0xf1ef('0x166')])){}logger[_0xf1ef('0xb6')](_0xf1ef('0x167'),JSON[_0xf1ef('0xe4')](_0x4b393e));this[_0xf1ef('0x38')][_0xf1ef('0x84')](this,_0x23bc05,_0x23bc05[_0xf1ef('0x15a')]);this[_0xf1ef('0xd')]['noop'](util[_0xf1ef('0x2a')](_0xf1ef('0x168'),_0x181ad7[_0xf1ef('0x14')]));this['sendMailMessage'][_0xf1ef('0x84')](this,_0x4652d7,_0x4b393e);return this[_0xf1ef('0xd')][_0xf1ef('0x90')](_0xf1ef('0x169'));};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x16a')]=function(_0x1d5f24){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x16b'),_0x1d5f24[_0xf1ef('0x3a')]));return this[_0xf1ef('0xd')][_0xf1ef('0x90')]('SENDFAX\x20block\x20not\x20implemented');};AGIVertices[_0xf1ef('0x10')]['sendSMS']=function(_0x1b0af3){logger[_0xf1ef('0x2f')](util['format'](_0xf1ef('0x16c'),_0x1b0af3[_0xf1ef('0x3a')]));if(!this[_0xf1ef('0x82')](_0x1b0af3[_0xf1ef('0x16d')])){return this[_0xf1ef('0xd')][_0xf1ef('0x90')](_0xf1ef('0x16e'));}var _0x445df5=this[_0xf1ef('0x35')][_0xf1ef('0x84')](this,_0x1b0af3[_0xf1ef('0x16d')]);if(!_0x445df5){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x1b0af3,'no\x20sms\x20account\x20found');}var _0xeedcbc={'body':_0x1b0af3[_0xf1ef('0x16f')],'phone':_0x1b0af3['to']||'','SmsAccountId':_0x445df5['id']};logger[_0xf1ef('0xb6')](_0xf1ef('0x170'),JSON[_0xf1ef('0xe4')](_0xeedcbc));this[_0xf1ef('0x38')][_0xf1ef('0x84')](this,_0x1b0af3,_0x1b0af3[_0xf1ef('0x16d')]);this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0x171'),_0x445df5['name']));this[_0xf1ef('0x37')]['sync'](this,_0xeedcbc);return this[_0xf1ef('0xd')][_0xf1ef('0x90')]('Sms\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x172')]=function(_0x331523){logger['info'](util[_0xf1ef('0x2a')](_0xf1ef('0x173'),_0x331523['label']));if(!this['isConfigured'](_0x331523[_0xf1ef('0xb0')])){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x331523,'no\x20variable\x20selected');}var _0x3aa47e=this[_0xf1ef('0x11')][_0xf1ef('0x84')](this,_0x331523['variable_id']);if(!_0x3aa47e){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x331523,_0xf1ef('0xb1'));}return this[_0xf1ef('0xd')][_0xf1ef('0x81')](_0x3aa47e,_0x331523['variable_value']);};AGIVertices[_0xf1ef('0x10')]['start']=function(_0x33fd30){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x174'),_0x33fd30[_0xf1ef('0x3a')]));this['channel'][_0xf1ef('0x90')](_0xf1ef('0x175'));if(_0x33fd30[_0xf1ef('0x176')]===_0xf1ef('0x177')){this[_0xf1ef('0xd')]['noop'](_0xf1ef('0x178'));return this['channel']['answer']();}return this['channel'][_0xf1ef('0x90')]('Skipped\x20Answer');};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x179')]=function(_0x56b60f){logger[_0xf1ef('0x2f')](util['format']('Enter\x20in\x20SUBPROJECT\x20(%s)\x20block',_0x56b60f['label']));if(!this[_0xf1ef('0x82')](_0x56b60f[_0xf1ef('0x17a')])){return this['channel'][_0xf1ef('0x2d')](_0x56b60f,_0xf1ef('0x17b'));}var _0x3d6ec8=this[_0xf1ef('0x16')][_0xf1ef('0x84')](this,_0x56b60f['project_id']);if(!this['isConfigured'](_0x3d6ec8)){return this[_0xf1ef('0xd')]['error'](_0x56b60f,util['format']('no\x20subproject\x20found\x20with\x20id\x20%d',_0x56b60f[_0xf1ef('0x17a')]));}if(_0x3d6ec8===this['channel']['arg_1']){return this['channel'][_0xf1ef('0x2d')](_0x56b60f,_0xf1ef('0x17c'));}this[_0xf1ef('0x38')][_0xf1ef('0x84')](this,_0x56b60f,_0x3d6ec8);var _0x4f0504=this[_0xf1ef('0xd')]['exec'](_0xf1ef('0x17d'),util[_0xf1ef('0x2a')](_0xf1ef('0x17e'),config[_0xf1ef('0x8')][_0xf1ef('0x161')]||_0xf1ef('0x17f'),_0x3d6ec8,this['channel']['arg_1']));if(_0x4f0504[_0xf1ef('0x7f')]===-0x1){return _0x4f0504;}return this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0x94'),'AGI',_0x3d6ec8));};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x180')]=function(_0x359956){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')]('Enter\x20in\x20SYSTEM\x20(%s)\x20block',_0x359956['label']));var _0x593ff3=this[_0xf1ef('0x5a')]['sync'](this,_0x359956['command']);this['createSquareDetailsReport'][_0xf1ef('0x84')](this,_0x359956,_0x359956['command']);if(this['isConfigured'](_0x359956[_0xf1ef('0xb0')])){var _0x884100=this[_0xf1ef('0x11')]['sync'](this,_0x359956['variable_id']);if(_0x884100){this[_0xf1ef('0xd')][_0xf1ef('0x81')](_0x884100,_0x593ff3);return this['channel']['noop'](util[_0xf1ef('0x2a')]('sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s',_0x359956[_0xf1ef('0x86')],_0x884100));}}return this[_0xf1ef('0xd')]['noop'](util['format'](_0xf1ef('0x181'),_0x359956[_0xf1ef('0x86')]));};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x182')]=function(_0x2d5206){logger[_0xf1ef('0x2f')](util['format']('Enter\x20in\x20GOOGLETTS\x20(%s)\x20block',_0x2d5206['label']));if(!this[_0xf1ef('0x82')](_0x2d5206[_0xf1ef('0x62')])){return this[_0xf1ef('0xd')][_0xf1ef('0x90')](_0xf1ef('0x99'));}this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0x183'),_0x2d5206['text']));var _0x51913c=this[_0xf1ef('0x5e')][_0xf1ef('0x84')](this,_0x2d5206);if(_0x51913c){this[_0xf1ef('0xd')][_0xf1ef('0x90')](util['format'](_0xf1ef('0x184'),_0x51913c));var _0x30c448=this[_0xf1ef('0xd')][_0xf1ef('0xd1')](_0x51913c);try{fs[_0xf1ef('0x11e')](_0x51913c+_0xf1ef('0xd2'));}catch(_0x10ffbd){logger[_0xf1ef('0x2d')](_0x10ffbd);}return _0x30c448;}return this['channel'][_0xf1ef('0x2d')](_0x2d5206,_0xf1ef('0x185'));};AGIVertices['prototype'][_0xf1ef('0x186')]=function(_0x3196fc){logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x187'),_0x3196fc['label']));if(!this[_0xf1ef('0x82')](_0x3196fc['findBy'])){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x3196fc,'no\x20find\x20by\x20configured');}logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x129'),this[_0xf1ef('0xd')][_0xf1ef('0x3c')],_0x3196fc[_0xf1ef('0x122')]));var _0x3242c3=this[_0xf1ef('0x54')]['sync'](this,_0x3196fc[_0xf1ef('0x122')]);if(_0x3242c3){logger[_0xf1ef('0x2f')](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0xf1ef('0xd')][_0xf1ef('0x3c')],_0x3196fc[_0xf1ef('0x122')]));this[_0xf1ef('0xd')][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0x124'),this[_0xf1ef('0xd')][_0xf1ef('0x3c')],_0x3196fc['findBy']));return{'code':0xc8,'result':_0xf1ef('0x139')};}else{logger[_0xf1ef('0x2f')](util[_0xf1ef('0x2a')](_0xf1ef('0x125'),this[_0xf1ef('0xd')]['callerid'],_0x3196fc[_0xf1ef('0x122')]));this[_0xf1ef('0xd')][_0xf1ef('0x90')](util['format'](_0xf1ef('0x125'),this['channel'][_0xf1ef('0x3c')],_0x3196fc[_0xf1ef('0x122')]));return{'code':0xc8,'result':_0xf1ef('0x126')};}};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x188')]=function(_0x367fda){logger[_0xf1ef('0x2f')](util['format'](_0xf1ef('0x189'),_0x367fda['label']));var _0xd65b4d=this[_0xf1ef('0xd')][_0xf1ef('0x5b')](_0xf1ef('0x18a'),[_0x367fda[_0xf1ef('0x18b')],_0x367fda[_0xf1ef('0x93')]]);if(_0xd65b4d[_0xf1ef('0x7f')]===-0x1){return _0xd65b4d;}return this['channel'][_0xf1ef('0x90')](util[_0xf1ef('0x2a')](_0xf1ef('0x94'),'VOICEMAIL',_0x367fda['mailbox']));};AGIVertices[_0xf1ef('0x10')][_0xf1ef('0x18c')]=function(_0x2b0be2){logger['info'](util['format'](_0xf1ef('0x18d'),_0x2b0be2['label']));if(!this[_0xf1ef('0x82')](_0x2b0be2[_0xf1ef('0xb0')])){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x2b0be2,_0xf1ef('0x18e'));}var _0x1cd62d=this[_0xf1ef('0x11')][_0xf1ef('0x84')](this,_0x2b0be2[_0xf1ef('0xb0')]);if(!_0x1cd62d){return this[_0xf1ef('0xd')][_0xf1ef('0x2d')](_0x2b0be2,_0xf1ef('0xb1'));}var _0x3536f3=this['channel']['getVariable'](_0x1cd62d);return{'code':0xc8,'result':_0x3536f3[_0xf1ef('0x7e')]?_0x3536f3[_0xf1ef('0x7e')]:'-'};};String['prototype']['replaceAll']=function(_0x3a9aef,_0x1d5b31){return this['split'](_0x3a9aef)[_0xf1ef('0x18f')](_0x1d5b31);};module['exports']=AGIVertices;
\ No newline at end of file