Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / services / agi / vertices.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x2c1f=['stringify','mindigit','hiddendigitsnum','hiddendigitspos','first','substr','generate','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','aws\x20Polly\x20%s\x20file\x20created','aws\x20Polly\x20is\x20unreachable','awslex','no\x20valid\x20credentials\x20configured','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','isString','AWS_LEX_%s','message','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','%s.%s','beep','NOBEEP','recordFile','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','appid','no\x20appid\x20configured','no\x20appsecret\x20configured','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','context','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','true','false','EVAL\x20CONDITION\x20%s\x20%s','gotoiftime','interval_id','no\x20interval\x20configured','no\x20intervals\x20found','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20TTS\x20is\x20unreachable','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','math','operation','no\x20operation\x20configured','math\x20%s','no\x20variable\x20found','isArray','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','no\x20find\x20by\x20configured','pause_id','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue','queue_id','indexOf','toLowerCase','macro','gosub','position','QUEUE','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s_%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','saydigits','sayDigits','digits','sayNumber','number','replace','sayphonetic','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','no\x20mail\x20account\x20configured','account_id','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','Smtp','user','bcc','service','host','port','secure','authentication','pass','template_id','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','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','Enter\x20in\x20START\x20(%s)\x20block','yes','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','no\x20subproject\x20found\x20with\x20id\x20%d','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','Enter\x20in\x20SYSTEM\x20(%s)\x20block','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','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','exports','util','lodash','shelljs','odbc','randomstring','moment','mustache','../../config/logger','agi','./scripts','menu','getsecretdigits','channel','mailRpc','prototype','getVariable','rpc','getVariableById','then','name','getVoiceQueue','catch','getSquareProject','getSquareProjectById','getSquareOdbcById','dsn','getUserById','getTrunk','getTrunkById','getSoundPath','save_name','getMailAccount','getMailAccountById','sendMailMessage','getIntervalById','IntervalId','interval','map','Intervals','format','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','ODBC\x20connection\x20successfully','query','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','Error\x20closing\x20connection\x20to\x20odbc\x20%s','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','callerid','createSquareRecording','calleridname','extension','priority','accountcode','createSquareMessage','isEmpty','isNil','callback_','random','lastName','phone','list_id','scheduledAt','callback','callback_priority','getPause','getPauseById','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','%s/%s@from-sip/n','LOCAL','shellCommand','exec','trim','googleTTS','google_tts_language','googleDialogflow','key','dialogflow_language','sestekNDA','ispeechTTS','text','ispeech_tts_language','en-US','speed','ispeechASR','ispeech_asr_language','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','aws_polly_voice','Amy','aws_text_type','awsLex','aws_lex_region','googleASR','tildeASR','appsecret','uri','clear','includes','clone','hasOwnProperty','replaceAllVariables','split','length','replaceAll','toString','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','extra','maxRetry','sync','retry','Enter\x20in\x20AGI\x20(%s)\x20block','command','Enter\x20in\x20ANSWER\x20(%s)\x20block','timeout','answer','no\x20list\x20selected','isConfigured','delay','add','minutes','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','options','noop','Executed\x20command\x20%s\x20%s','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','no\x20text\x20configured','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','grammar','no\x20grammar\x20configured','MRCPRecog','getAndSetVariable','LUMENVOX_ASR_CONFIDENCE','RECOG_INPUT()','LUMENVOX_ASR_INSTANCE','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','RECOG_INSTANCE()','SESTEK_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','no\x20database\x20selected','getSquareOdbc','no\x20odbc\x20database\x20found','no\x20query\x20configured','query:\x20%s','no\x20variable\x20selected\x20for\x20the\x20result','variable_id','forEach','setVariable','%s[%s][%s]','variable\x20%s\x20set','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','getUser','no\x20user\x20found','DIAL','SIP/%s','opts','url','Executed\x20command\x20%s','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','Trying\x20Dialogflow:\x20%s','toUpperCase','speech','out','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','username','no\x20username\x20configured','password','no\x20password\x20configured','ndassistant_url','audiofile','streamFile','unlink','.wav','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','Enter\x20in\x20END\x20(%s)\x20block','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','SIP/%s/%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','getdigits','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','no\x20file\x20audio\x20selected','getSound','no\x20file\x20audio\x20found','getData','response','maxdigit','test'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x2c1f,0xb6));var _0xf2c1=function(_0x80d4fb,_0x51c4d8){_0x80d4fb=_0x80d4fb-0x0;var _0xbb473c=_0x2c1f[_0x80d4fb];return _0xbb473c;};'use strict';var fs=require('fs');var path=require('path');var util=require(_0xf2c1('0x0'));var _=require(_0xf2c1('0x1'));var sh=require(_0xf2c1('0x2'));var odbc=require(_0xf2c1('0x3'))();var rs=require(_0xf2c1('0x4'));var moment=require(_0xf2c1('0x5'));var Mustache=require(_0xf2c1('0x6'));var logger=require(_0xf2c1('0x7'))(_0xf2c1('0x8'));var config=require('../../config/environment');var scripts=require(_0xf2c1('0x9'));var FILES_PATH='/var/opt/motion2/server/files';var verticesWithRetry=[_0xf2c1('0xa'),'getdigits',_0xf2c1('0xb')];var AGIVertices=function(_0x478b01,_0x191221,_0x1c1d04){this[_0xf2c1('0xc')]=_0x478b01;this['rpc']=_0x191221;this[_0xf2c1('0xd')]=_0x1c1d04;};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0xf')]=function(_0x597445,_0x351e09){this[_0xf2c1('0x10')][_0xf2c1('0x11')](_0x597445)[_0xf2c1('0x12')](function(_0x34706d){_0x351e09(null,_0x34706d?_0x34706d[_0xf2c1('0x13')]:![]);})['catch'](function(_0x40135c){_0x351e09(_0x40135c);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x14')]=function(_0x4ebe9b,_0x448a56){this[_0xf2c1('0x10')]['getVoiceQueueById'](_0x4ebe9b)[_0xf2c1('0x12')](function(_0x205a19){_0x448a56(null,_0x205a19?_0x205a19[_0xf2c1('0x13')]:![]);})[_0xf2c1('0x15')](function(_0x46ec83){_0x448a56(_0x46ec83);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x16')]=function(_0x5bb5ef,_0x535d71){this[_0xf2c1('0x10')][_0xf2c1('0x17')](_0x5bb5ef)[_0xf2c1('0x12')](function(_0x57b9d4){_0x535d71(null,_0x57b9d4?_0x57b9d4['name']:![]);})[_0xf2c1('0x15')](function(_0x2d4ea8){_0x535d71(_0x2d4ea8);});};AGIVertices['prototype']['getSquareOdbc']=function(_0x3be48b,_0x133b0e){this[_0xf2c1('0x10')][_0xf2c1('0x18')](_0x3be48b)[_0xf2c1('0x12')](function(_0x5f5b88){_0x133b0e(null,_0x5f5b88?_0x5f5b88[_0xf2c1('0x19')]:![]);})['catch'](function(_0x1df1cd){_0x133b0e(_0x1df1cd);});};AGIVertices[_0xf2c1('0xe')]['getUser']=function(_0x542156,_0x5aa9db){this[_0xf2c1('0x10')][_0xf2c1('0x1a')](_0x542156)['then'](function(_0x54312b){_0x5aa9db(null,_0x54312b?_0x54312b[_0xf2c1('0x13')]:![]);})[_0xf2c1('0x15')](function(_0xc07d17){_0x5aa9db(_0xc07d17);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x1b')]=function(_0x40765a,_0x4bc1b2){this['rpc'][_0xf2c1('0x1c')](_0x40765a)[_0xf2c1('0x12')](function(_0x7de724){_0x4bc1b2(null,_0x7de724?_0x7de724['name']:![]);})[_0xf2c1('0x15')](function(_0x36d005){_0x4bc1b2(_0x36d005);});};AGIVertices[_0xf2c1('0xe')]['getSound']=function(_0x178ffe,_0x1e008b){var _0xaea512=this;this['rpc']['getSoundById'](_0x178ffe)[_0xf2c1('0x12')](function(_0x2739d4){_0x1e008b(null,_0x2739d4?_0xaea512[_0xf2c1('0x1d')](_0x2739d4[_0xf2c1('0x1e')]):![]);})[_0xf2c1('0x15')](function(_0x53afa7){_0x1e008b(_0x53afa7);});};AGIVertices['prototype'][_0xf2c1('0x1f')]=function(_0xe1d596,_0xcbf53c){this[_0xf2c1('0x10')][_0xf2c1('0x20')](_0xe1d596)[_0xf2c1('0x12')](function(_0x2cab49){_0xcbf53c(null,_0x2cab49?_0x2cab49:![]);})[_0xf2c1('0x15')](function(_0x1b910e){_0xcbf53c(_0x1b910e);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x21')]=function(_0x1c0036,_0x4d0771,_0x51e030){this['mailRpc']['sendMailMessage'](_0x1c0036,_0x4d0771)[_0xf2c1('0x12')](function(){_0x51e030(null);})['catch'](function(_0x2bce48){_0x51e030(_0x2bce48);});};AGIVertices[_0xf2c1('0xe')]['getIntervals']=function(_0x364e04,_0x5dafa0){this[_0xf2c1('0x10')][_0xf2c1('0x22')](_0x364e04)['then'](function(_0x376a66){if(_0x376a66){if(_0x376a66[_0xf2c1('0x23')]){_0x5dafa0(null,[_0x376a66[_0xf2c1('0x24')]]);}else{_0x5dafa0(null,_[_0xf2c1('0x25')](_0x376a66[_0xf2c1('0x26')],'interval'));}}else{_0x5dafa0(null,![]);}})[_0xf2c1('0x15')](function(_0x9a2c3b){_0x5dafa0(_0x9a2c3b);});};AGIVertices['prototype']['getSoundPath']=function(_0x142339){return util[_0xf2c1('0x27')](_0xf2c1('0x28'),FILES_PATH,_0x142339);};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x29')]=function(_0x1b35a5,_0x41e91a,_0x11aec8){odbc[_0xf2c1('0x2a')](_0x1b35a5,function(_0x235e26){if(_0x235e26){logger[_0xf2c1('0x2b')](_0xf2c1('0x2c'),_0x235e26);_0x11aec8(_0x235e26);}else{logger[_0xf2c1('0x2d')](_0xf2c1('0x2e'));odbc[_0xf2c1('0x2f')](_0x41e91a,function(_0x41f9c2,_0x2e4e2c){if(_0x41f9c2){logger['info'](_0xf2c1('0x30'),_0x41e91a);_0x11aec8(_0x41f9c2);}else{logger['info'](_0xf2c1('0x31'),_0x41e91a);odbc['close'](function(_0x1fb6b7){if(_0x1fb6b7){logger[_0xf2c1('0x2b')](_0xf2c1('0x32'),_0x1fb6b7);}_0x11aec8(null,_0x2e4e2c);});}});}});};AGIVertices['prototype']['getSmsAccount']=function(_0x4d4652,_0x33d652){this[_0xf2c1('0x10')]['getSmsAccountById'](_0x4d4652)[_0xf2c1('0x12')](function(_0x172388){_0x33d652(null,_0x172388?_0x172388:![]);})[_0xf2c1('0x15')](function(_0x1f2c7c){_0x33d652(_0x1f2c7c);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x33')]=function(_0x3cec9a,_0x574878){this[_0xf2c1('0x10')]['createSmsMessage'](_0x3cec9a)['then'](function(_0x28d13c){_0x574878(null,_0x28d13c);})[_0xf2c1('0x15')](function(_0x29b0c9){_0x574878(_0x29b0c9);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x34')]=function(_0x4a6a34,_0x5d498c,_0x5bfd53){this[_0xf2c1('0x10')][_0xf2c1('0x34')]({'uniqueid':this[_0xf2c1('0xc')][_0xf2c1('0x35')],'node':_0x4a6a34[_0xf2c1('0x36')],'application':_0x4a6a34[_0xf2c1('0x37')],'data':_0x5d498c||null,'project_name':this[_0xf2c1('0xc')]['arg_1'],'callerid':this[_0xf2c1('0xc')][_0xf2c1('0x38')]})['then'](function(_0x962386){if(_0x5bfd53){_0x5bfd53(null,_0x962386);}})['catch'](function(_0xd2b2db){if(_0x5bfd53){_0x5bfd53(_0xd2b2db);}});};AGIVertices['prototype']['createSquareRecording']=function(_0x230bdb,_0x55565e,_0x4ec28b,_0x397eae){this[_0xf2c1('0x10')][_0xf2c1('0x39')]({'uniqueid':this[_0xf2c1('0xc')][_0xf2c1('0x35')],'callerid':this[_0xf2c1('0xc')][_0xf2c1('0x38')],'calleridname':this[_0xf2c1('0xc')][_0xf2c1('0x3a')],'context':this[_0xf2c1('0xc')]['context'],'extension':this[_0xf2c1('0xc')][_0xf2c1('0x3b')],'priority':this[_0xf2c1('0xc')][_0xf2c1('0x3c')],'accountcode':this[_0xf2c1('0xc')][_0xf2c1('0x3d')],'dnid':this[_0xf2c1('0xc')]['dnid'],'projectName':this[_0xf2c1('0xc')]['arg_1'],'saveName':_0x55565e,'filename':_0x230bdb['file']||_0x55565e,'savePath':_0x4ec28b})[_0xf2c1('0x12')](function(_0x1126a5){_0x397eae(null,_0x1126a5);})[_0xf2c1('0x15')](function(_0x3918c4){_0x397eae(_0x3918c4);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x3e')]=function(_0xe287ef,_0x2fc726,_0x5d9667){this[_0xf2c1('0x10')][_0xf2c1('0x3e')]({'uniqueid':this[_0xf2c1('0xc')][_0xf2c1('0x35')],'body':_0xe287ef,'direction':_0x2fc726})['then'](function(_0x212f39){if(_0x5d9667){_0x5d9667(null,_0x212f39);}})[_0xf2c1('0x15')](function(_0x145cdd){if(_0x5d9667){_0x5d9667(_0x145cdd);}});};AGIVertices['prototype']['createCmContact']=function(_0x2fa789,_0x3b1692){this[_0xf2c1('0x10')]['createCmContact']({'firstName':_[_0xf2c1('0x3f')](_0x2fa789[_0xf2c1('0x13')])||_[_0xf2c1('0x40')](_0x2fa789['name'])?_0xf2c1('0x41')+Math[_0xf2c1('0x42')]():_0x2fa789[_0xf2c1('0x13')],'lastName':_[_0xf2c1('0x3f')](_0x2fa789[_0xf2c1('0x43')])||_[_0xf2c1('0x40')](_0x2fa789['lastName'])?null:_0x2fa789[_0xf2c1('0x43')],'phone':_0x2fa789[_0xf2c1('0x44')],'ListId':_0x2fa789[_0xf2c1('0x45')],'scheduledAt':_0x2fa789[_0xf2c1('0x46')],'callbackUniqueid':this['channel'][_0xf2c1('0x35')],'tags':_0xf2c1('0x47'),'description':'Callback\x20scheduled\x20at\x20'+_0x2fa789[_0xf2c1('0x46')]['toString'](),'priority':_0x2fa789[_0xf2c1('0x48')]})[_0xf2c1('0x12')](function(_0x47ed3a){_0x3b1692(null,_0x47ed3a);})['catch'](function(_0x58c9d0){_0x3b1692(_0x58c9d0);});};AGIVertices['prototype'][_0xf2c1('0x49')]=function(_0x6ada38,_0x2ee23e){this[_0xf2c1('0x10')][_0xf2c1('0x4a')](_0x6ada38)[_0xf2c1('0x12')](function(_0x4cfa19){_0x2ee23e(null,_0x4cfa19?_0x4cfa19['name']:![]);})[_0xf2c1('0x15')](function(_0x375f55){_0x2ee23e(_0x375f55);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x4b')]=function(_0x1221f8,_0x4183ce,_0x23af74){var _0x205dbc={'role':_0xf2c1('0x4c')};_0x205dbc[_0x1221f8]=this[_0xf2c1('0xc')][_0xf2c1('0x38')];this[_0xf2c1('0x10')]['agentPause'](_0x205dbc,_0x4183ce,this[_0xf2c1('0xc')][_0xf2c1('0x35')])[_0xf2c1('0x12')](function(_0x56627d){_0x23af74(null,_['isNil'](_0x56627d)?![]:!![]);})[_0xf2c1('0x15')](function(_0x128dfb){logger[_0xf2c1('0x2b')](_0x128dfb);_0x23af74(null,![]);});};AGIVertices['prototype'][_0xf2c1('0x4d')]=function(_0x32e8c0,_0x5bbd36){var _0x466639={'role':_0xf2c1('0x4c')};_0x466639[_0x32e8c0]=this[_0xf2c1('0xc')][_0xf2c1('0x38')];this[_0xf2c1('0x10')][_0xf2c1('0x4d')](_0x466639)['then'](function(_0x175e13){_0x5bbd36(null,_[_0xf2c1('0x40')](_0x175e13)?![]:!![]);})[_0xf2c1('0x15')](function(_0x1d439f){logger[_0xf2c1('0x2b')](_0x1d439f);_0x5bbd36(null,![]);});};AGIVertices[_0xf2c1('0xe')]['agentLogout']=function(_0x49fa21,_0x127f88){var _0x19bb31={'role':_0xf2c1('0x4c')};_0x19bb31[_0x49fa21]=this[_0xf2c1('0xc')][_0xf2c1('0x38')];this['rpc'][_0xf2c1('0x4e')](_0x19bb31)[_0xf2c1('0x12')](function(_0x1602ab){_0x127f88(null,_[_0xf2c1('0x40')](_0x1602ab)?![]:!![]);})['catch'](function(_0xbd6287){logger[_0xf2c1('0x2b')](_0xbd6287);_0x127f88(null,![]);});};AGIVertices['prototype'][_0xf2c1('0x4f')]=function(_0x59d2d2,_0x1db96e){var _0x5ea9be={'role':_0xf2c1('0x4c')};_0x5ea9be[_0x59d2d2]=this[_0xf2c1('0xc')][_0xf2c1('0x38')];var _0x152654=_0x59d2d2!=_0xf2c1('0x50')?util[_0xf2c1('0x27')](_0xf2c1('0x51'),_0xf2c1('0x52'),this[_0xf2c1('0xc')]['callerid']):undefined;this[_0xf2c1('0x10')]['agentLogin'](_0x5ea9be,_0x152654)[_0xf2c1('0x12')](function(_0xbd2939){_0x1db96e(null,_[_0xf2c1('0x40')](_0xbd2939)?![]:!![]);})[_0xf2c1('0x15')](function(_0xc2c9ff){logger[_0xf2c1('0x2b')](_0xc2c9ff);_0x1db96e(null,![]);});};AGIVertices['prototype'][_0xf2c1('0x53')]=function(_0x1a4e21,_0x36e312){sh[_0xf2c1('0x54')](_[_0xf2c1('0x55')](_0x1a4e21),function(_0x4eda4e,_0x5c305d){var _0xc8b2c8=_0x5c305d['replace'](/(\r\n|\n|\r)/gm,'');_0x36e312(null,_0xc8b2c8);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x56')]=function(_0x624994,_0x3e07e6){scripts[_0xf2c1('0x56')](_0x624994['text'],_0x624994[_0xf2c1('0x57')]||'en',0x1)['then'](function(_0x5b32e7){_0x3e07e6(null,_0x5b32e7);})[_0xf2c1('0x15')](function(_0x12b098){_0x3e07e6(_0x12b098);});};AGIVertices['prototype'][_0xf2c1('0x58')]=function(_0x175628,_0x270c80){scripts[_0xf2c1('0x58')](this['channel']['uniqueid'],_0x175628[_0xf2c1('0x59')],_0x175628['text'],_0x175628[_0xf2c1('0x5a')]||'en')[_0xf2c1('0x12')](function(_0x40112a){_0x270c80(null,_0x40112a);})[_0xf2c1('0x15')](function(_0x4d802c){_0x270c80(_0x4d802c);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x5b')]=function(_0xdc5d67,_0x3f97cb){scripts['sestekNDA'](this[_0xf2c1('0xc')],_0xdc5d67)[_0xf2c1('0x12')](function(_0x542916){_0x3f97cb(null,_0x542916);})[_0xf2c1('0x15')](function(_0x4d1377){_0x3f97cb(_0x4d1377);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x5c')]=function(_0x599b93,_0x5dc096){scripts['ispeechTTS'](_0x599b93[_0xf2c1('0x59')],_0x599b93[_0xf2c1('0x5d')],_0x599b93[_0xf2c1('0x5e')]||_0xf2c1('0x5f'),_0x599b93[_0xf2c1('0x60')])['then'](function(_0x1718db){_0x5dc096(null,_0x1718db);})[_0xf2c1('0x15')](function(_0x52b43d){_0x5dc096(_0x52b43d);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x61')]=function(_0x2b7384,_0x2513cd,_0x224517){scripts['ispeechASR'](_0x2513cd,_0x2b7384['key'],_0x2b7384[_0xf2c1('0x62')]||_0xf2c1('0x5f'),this['isConfigured'](_0x2b7384[_0xf2c1('0x63')])?_0x2b7384[_0xf2c1('0x63')]:undefined)[_0xf2c1('0x12')](function(_0x533627){_0x224517(null,_0x533627);})[_0xf2c1('0x15')](function(_0x4cd3a5){_0x224517(_0x4cd3a5);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x64')]=function(_0xa8817,_0x43e935){scripts[_0xf2c1('0x64')](_0xa8817[_0xf2c1('0x65')],_0xa8817[_0xf2c1('0x66')],_0xa8817[_0xf2c1('0x67')],_0xa8817[_0xf2c1('0x68')]||_0xf2c1('0x69'),_0xa8817[_0xf2c1('0x5d')],_0xa8817[_0xf2c1('0x6a')]||'text')[_0xf2c1('0x12')](function(_0x42be54){_0x43e935(null,_0x42be54);})['catch'](function(_0x1bc875){_0x43e935(_0x1bc875);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x6b')]=function(_0x5c7d2d,_0xa69d7c){scripts[_0xf2c1('0x6b')](this['channel'][_0xf2c1('0x35')],_0x5c7d2d[_0xf2c1('0x65')],_0x5c7d2d[_0xf2c1('0x66')],_0x5c7d2d[_0xf2c1('0x6c')],_0x5c7d2d[_0xf2c1('0x5d')],_0x5c7d2d['aws_bot_name'])[_0xf2c1('0x12')](function(_0x317278){_0xa69d7c(null,_0x317278);})[_0xf2c1('0x15')](function(_0x49d256){_0xa69d7c(_0x49d256);});};AGIVertices['prototype'][_0xf2c1('0x6d')]=function(_0x1895e3,_0x4e681b,_0xe67a03){scripts[_0xf2c1('0x6d')](_0x4e681b,_0x1895e3[_0xf2c1('0x59')],_0x1895e3['google_asr_language']||_0xf2c1('0x5f'))[_0xf2c1('0x12')](function(_0x26c77f){_0xe67a03(null,_0x26c77f);})[_0xf2c1('0x15')](function(_0x4d01f1){_0xe67a03(_0x4d01f1);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x6e')]=function(_0x1e27fe,_0x55b0fc,_0x36f71d){scripts[_0xf2c1('0x6e')](_0x55b0fc,_0x1e27fe['appid'],_0x1e27fe[_0xf2c1('0x6f')],_0x1e27fe[_0xf2c1('0x70')])[_0xf2c1('0x12')](function(_0x44596a){_0x36f71d(null,_0x44596a);})[_0xf2c1('0x15')](function(_0x4c4ec5){_0x36f71d(_0x4c4ec5);});};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x71')]=function(_0x5c8d8f){var _0x11a31c=_[_0xf2c1('0x72')](verticesWithRetry,_0x5c8d8f[_0xf2c1('0x37')])?_0x5c8d8f:_[_0xf2c1('0x73')](_0x5c8d8f);for(var _0xf47226 in _0x11a31c){if(_0x11a31c[_0xf2c1('0x74')](_0xf47226)){if(_0x11a31c[_0xf47226]&&_['isString'](_0x11a31c[_0xf47226])){_0x11a31c[_0xf47226]=this[_0xf2c1('0x75')](_0x11a31c[_0xf47226]);}}}return _0x11a31c;};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x75')]=function(_0x18aab2){var _0x2483e8=_0x18aab2[_0xf2c1('0x76')]('{');for(var _0x4c7154=0x1;_0x4c7154<_0x2483e8[_0xf2c1('0x77')];_0x4c7154+=0x1){var _0x5e3809=_0x2483e8[_0x4c7154]['split']('}');if(_0x5e3809['length']>0x1){_0x18aab2=_0x18aab2[_0xf2c1('0x78')]('{'+_0x5e3809[0x0]+'}',this['channel'][_0xf2c1('0xf')](_0x5e3809[0x0])['extra']||_0x5e3809[0x0]);}}if(_0x2483e8[_0xf2c1('0x77')]===0x1){return _0x18aab2[_0xf2c1('0x79')]();}return this[_0xf2c1('0x75')](_0x18aab2);};AGIVertices['prototype']['getAndSetVariable']=function(_0x4e48a3,_0x4f9c88){var _0x4609fb=this[_0xf2c1('0xc')][_0xf2c1('0xf')](_0x4e48a3);if(_0x4609fb[_0xf2c1('0x7a')]===-0x1){return _0x4609fb;}logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x7b'),_0x4f9c88,_0x4609fb['extra']));return this[_0xf2c1('0xc')]['setVariable'](_0x4f9c88,_0x4609fb[_0xf2c1('0x7c')]);};AGIVertices['prototype']['isConfigured']=function(_0x1a9e17){return _0x1a9e17&&_0x1a9e17!=='0'&&_0x1a9e17!=='-1'&&_0x1a9e17!=='';};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x7d')]=function(_0x1e84dd){this[_0xf2c1('0x34')][_0xf2c1('0x7e')](this,_0x1e84dd,'-');_0x1e84dd[_0xf2c1('0x7f')]=_0x1e84dd[_0xf2c1('0x7d')];return{'code':0xc8,'result':'-'};};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x8')]=function(_0x3040f5){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x80'),_0x3040f5[_0xf2c1('0x36')]));return this[_0xf2c1('0xc')][_0xf2c1('0x8')]([_0x3040f5[_0xf2c1('0x81')],_0x3040f5['args']]);};AGIVertices[_0xf2c1('0xe')]['answer']=function(_0x244691){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x82'),_0x244691['label']));if(this['isConfigured'](_0x244691[_0xf2c1('0x83')])){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')]('Wait\x20%s\x20seconds\x20before\x20answer',_0x244691['timeout']));var _0xb63228=this[_0xf2c1('0xc')]['wait'](_0x244691[_0xf2c1('0x83')]);if(_0xb63228[_0xf2c1('0x7a')]===-0x1){return _0xb63228;}}return this[_0xf2c1('0xc')][_0xf2c1('0x84')]();};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x47')]=function(_0x571b05){logger['info'](util['format']('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0x571b05[_0xf2c1('0x36')]));if(!this['isConfigured'](_0x571b05['list_id'])){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x571b05,_0xf2c1('0x85'));}_0x571b05[_0xf2c1('0x46')]=moment();if(this[_0xf2c1('0x86')](_0x571b05[_0xf2c1('0x87')])){_0x571b05[_0xf2c1('0x46')]=moment()[_0xf2c1('0x88')](_0x571b05['delay'],_0xf2c1('0x89'));}if(!this[_0xf2c1('0x86')](_0x571b05[_0xf2c1('0x48')])){_0x571b05[_0xf2c1('0x48')]=0x2;}this['createCmContact'][_0xf2c1('0x7e')](this,_0x571b05);return this['channel']['noop'](util[_0xf2c1('0x27')]('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0x571b05[_0xf2c1('0x44')],_0x571b05['list_id'],_0x571b05['scheduledAt']));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x8a')]=function(_0x47b72b){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x8b'),_0x47b72b['label']));var _0x50578d=this['channel']['exec'](_0x47b72b['application'],_0x47b72b[_0xf2c1('0x8c')]);if(_0x50578d['result']===-0x1){return _0x50578d;}return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x8e'),_0x47b72b['application'],_0x47b72b[_0xf2c1('0x8c')]));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x8f')]=function(_0x5df903){logger[_0xf2c1('0x2d')](util['format'](_0xf2c1('0x90'),_0x5df903['label']));if(!this['isConfigured'](_0x5df903[_0xf2c1('0x5d')])){return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](_0xf2c1('0x91'));}var _0x575087='\x22'+_0x5df903[_0xf2c1('0x5d')]+'\x22';if(this[_0xf2c1('0x86')](_0x5df903[_0xf2c1('0x8c')])){_0x575087+=','+_0x5df903[_0xf2c1('0x8c')];}var _0x5186a8=this[_0xf2c1('0xc')][_0xf2c1('0x54')](_0xf2c1('0x92'),_0x575087);if(_0x5186a8[_0xf2c1('0x7a')]===-0x1){return _0x5186a8;}return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util['format'](_0xf2c1('0x93'),_0x575087));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x94')]=function(_0x4f0ba8){logger['info'](util[_0xf2c1('0x27')](_0xf2c1('0x95'),_0x4f0ba8[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x4f0ba8[_0xf2c1('0x5d')])){return this[_0xf2c1('0xc')][_0xf2c1('0x8d')]('no\x20text\x20configured');}var _0x53a82f='\x22'+_0x4f0ba8[_0xf2c1('0x5d')]+'\x22';if(this[_0xf2c1('0x86')](_0x4f0ba8['options'])){_0x53a82f+=','+_0x4f0ba8[_0xf2c1('0x8c')];}var _0x27939d=this[_0xf2c1('0xc')][_0xf2c1('0x54')](_0xf2c1('0x92'),_0x53a82f);if(_0x27939d[_0xf2c1('0x7a')]===-0x1){return _0x27939d;}return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x93'),_0x53a82f));};AGIVertices['prototype']['lumenvoxasr']=function(_0x5baaa3){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')]('Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block',_0x5baaa3[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x5baaa3[_0xf2c1('0x96')])){return this['channel']['noop'](_0xf2c1('0x97'));}var _0x3cef8=_0x5baaa3[_0xf2c1('0x96')];if(this[_0xf2c1('0x86')](_0x5baaa3[_0xf2c1('0x8c')])){_0x3cef8+=','+_0x5baaa3[_0xf2c1('0x8c')];}var _0x26208a=this[_0xf2c1('0xc')][_0xf2c1('0x54')](_0xf2c1('0x98'),_0x3cef8);if(_0x26208a[_0xf2c1('0x7a')]===-0x1){return _0x26208a;}var _0x236174=this[_0xf2c1('0x99')]('RECOG_CONFIDENCE()',_0xf2c1('0x9a'));if(_0x236174['result']===-0x1){return _0x236174;}var _0x558338=this[_0xf2c1('0x99')](_0xf2c1('0x9b'),'LUMENVOX_ASR_TRANSCRIPT');if(_0x558338['result']===-0x1){return _0x558338;}var _0x11ca39=this[_0xf2c1('0x99')]('RECOG_INSTANCE()',_0xf2c1('0x9c'));if(_0x11ca39[_0xf2c1('0x7a')]===-0x1){return _0x11ca39;}return this['channel'][_0xf2c1('0x8d')](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0x3cef8));};AGIVertices['prototype']['sestekasr']=function(_0x294198){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x9d'),_0x294198[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x294198[_0xf2c1('0x96')])){return this['channel'][_0xf2c1('0x8d')]('no\x20grammar\x20configured');}var _0x414ee=_0x294198['grammar'];if(this[_0xf2c1('0x86')](_0x294198[_0xf2c1('0x8c')])){_0x414ee+=','+_0x294198[_0xf2c1('0x8c')];}var _0x101198=this[_0xf2c1('0xc')]['exec']('MRCPRecog',_0x414ee);if(_0x101198[_0xf2c1('0x7a')]===-0x1){return _0x101198;}var _0xef3226=this[_0xf2c1('0x99')]('RECOG_CONFIDENCE()',_0xf2c1('0x9e'));if(_0xef3226[_0xf2c1('0x7a')]===-0x1){return _0xef3226;}var _0x1d5d35=this[_0xf2c1('0x99')]('RECOG_INPUT()',_0xf2c1('0x9f'));if(_0x1d5d35[_0xf2c1('0x7a')]===-0x1){return _0x1d5d35;}var _0x59aa58=this[_0xf2c1('0x99')](_0xf2c1('0xa0'),_0xf2c1('0xa1'));if(_0x59aa58[_0xf2c1('0x7a')]===-0x1){return _0x59aa58;}return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0xa2'),_0x414ee));};AGIVertices['prototype'][_0xf2c1('0xa3')]=function(_0x22d0da){logger['info'](util[_0xf2c1('0x27')](_0xf2c1('0xa4'),_0x22d0da[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x22d0da['odbc_id'])){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x22d0da,_0xf2c1('0xa5'));}var _0xc97d95=this[_0xf2c1('0xa6')][_0xf2c1('0x7e')](this,_0x22d0da['odbc_id']);if(!_0xc97d95){return this[_0xf2c1('0xc')]['error'](_0x22d0da,_0xf2c1('0xa7'));}if(!this[_0xf2c1('0x86')](_0x22d0da['query'])){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x22d0da,_0xf2c1('0xa8'));}var _0x1f930c=_0x22d0da['query']['replace'](/(\r\n|\n|\r)/gm,'\x20');this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util['format'](_0xf2c1('0xa9'),_0x1f930c));var _0x5515ab=this[_0xf2c1('0x29')][_0xf2c1('0x7e')](this,_0xc97d95,_0x1f930c);this[_0xf2c1('0x34')][_0xf2c1('0x7e')](this,_0x22d0da,_0x1f930c);if(!this['isConfigured'](_0x22d0da['variable_id'])){return this['channel'][_0xf2c1('0x8d')](_0xf2c1('0xaa'));}var _0xd7750c=this['getVariable'][_0xf2c1('0x7e')](this,_0x22d0da[_0xf2c1('0xab')]);if(!_0xd7750c){return this['channel'][_0xf2c1('0x2b')](_0x22d0da,'no\x20variable\x20found');}var _0x1ce9f7=this;_0x5515ab[_0xf2c1('0xac')](function(_0x210436,_0x38a091){Object['keys'](_0x210436)[_0xf2c1('0xac')](function(_0x4a81db){_0x1ce9f7[_0xf2c1('0xc')][_0xf2c1('0xad')](util[_0xf2c1('0x27')](_0xf2c1('0xae'),_0xd7750c,_0x38a091,_0x4a81db),_0x210436[_0x4a81db]);});});this[_0xf2c1('0xc')]['setVariable'](util[_0xf2c1('0x27')]('%s_ROWS_COUNT',_0xd7750c),_0x5515ab[_0xf2c1('0x77')]);return this['channel'][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0xaf'),_0xd7750c));};AGIVertices[_0xf2c1('0xe')]['dial']=function(_0x2892f9){logger[_0xf2c1('0xb0')](util[_0xf2c1('0x27')](_0xf2c1('0xb1'),_0x2892f9[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x2892f9['sip_id'])){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x2892f9,'no\x20user\x20selected');}var _0x22201c=this[_0xf2c1('0xb2')][_0xf2c1('0x7e')](this,_0x2892f9['sip_id']);if(!_0x22201c){return this[_0xf2c1('0xc')]['error'](_0x2892f9,_0xf2c1('0xb3'));}var _0x2d9fc7=this[_0xf2c1('0xc')][_0xf2c1('0x54')](_0xf2c1('0xb4'),[util['format'](_0xf2c1('0xb5'),_0x22201c),_0x2892f9[_0xf2c1('0x83')],_0x2892f9[_0xf2c1('0xb6')],_0x2892f9[_0xf2c1('0xb7')]]);if(_0x2d9fc7[_0xf2c1('0x7a')]===-0x1){return _0x2d9fc7;}return this[_0xf2c1('0xc')]['noop'](util['format'](_0xf2c1('0xb8'),_0xf2c1('0xb4')));};AGIVertices[_0xf2c1('0xe')]['dialogflow']=function(_0x516bff){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0xb9'),_0x516bff[_0xf2c1('0x36')]));if(!this['isConfigured'](_0x516bff[_0xf2c1('0x59')])){return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](_0xf2c1('0xba'));}if(!this[_0xf2c1('0x86')](_0x516bff[_0xf2c1('0x5d')])){return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](_0xf2c1('0x91'));}this['channel'][_0xf2c1('0xbb')]=!![];this['createSquareDetailsReport'](_0x516bff);this[_0xf2c1('0x3e')](_0x516bff['text'],'in');this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util['format'](_0xf2c1('0xbc'),_0x516bff[_0xf2c1('0x5d')]));var _0x40637d=this['googleDialogflow'][_0xf2c1('0x7e')](this,_0x516bff);if(_0x40637d){for(var _0x15fbee in _0x40637d){if(_0x40637d['hasOwnProperty'](_0x15fbee)){this[_0xf2c1('0xc')][_0xf2c1('0xad')](util['format']('DIALOGFLOW_%s',_0x15fbee[_0xf2c1('0xbd')]()),_0x40637d[_0x15fbee]);}}this[_0xf2c1('0x3e')](_0x40637d[_0xf2c1('0xbe')],_0xf2c1('0xbf'));return this[_0xf2c1('0xc')]['noop'](util[_0xf2c1('0x27')](_0xf2c1('0xc0'),_0x40637d[_0xf2c1('0xbe')]));}return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x516bff,_0xf2c1('0xc1'));};AGIVertices['prototype'][_0xf2c1('0xc2')]=function(_0x212a7b){logger['info'](util[_0xf2c1('0x27')](_0xf2c1('0xc3'),_0x212a7b[_0xf2c1('0x36')]));if(!this['isConfigured'](_0x212a7b[_0xf2c1('0xc4')])){return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](_0xf2c1('0xc5'));}if(!this[_0xf2c1('0x86')](_0x212a7b[_0xf2c1('0xc6')])){return this['channel'][_0xf2c1('0x8d')](_0xf2c1('0xc7'));}if(!this[_0xf2c1('0x86')](_0x212a7b[_0xf2c1('0xc8')])){return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](_0xf2c1('0xc9'));}if(!this[_0xf2c1('0x86')](_0x212a7b[_0xf2c1('0xca')])){return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](_0xf2c1('0x91'));}this[_0xf2c1('0xc')][_0xf2c1('0xbb')]=!![];this['createSquareDetailsReport'](_0x212a7b);this[_0xf2c1('0x3e')](_0x212a7b[_0xf2c1('0x5d')],'in');this[_0xf2c1('0xc')]['noop'](util['format']('Trying\x20SestekNDA:\x20%s',_0x212a7b['text']));var _0xc4ff25=this[_0xf2c1('0x5b')][_0xf2c1('0x7e')](this,_0x212a7b);if(_0xc4ff25){for(var _0x227f58 in _0xc4ff25){if(_0xc4ff25[_0xf2c1('0x74')](_0x227f58)){this['channel'][_0xf2c1('0xad')](util[_0xf2c1('0x27')]('SESTEK_NDA_%s',_0x227f58[_0xf2c1('0xbd')]()),_0xc4ff25[_0x227f58]);}}this[_0xf2c1('0x3e')](_0xc4ff25['speech'],_0xf2c1('0xbf'));if(_0xc4ff25[_0xf2c1('0xcb')]){this[_0xf2c1('0xc')]['noop'](util[_0xf2c1('0x27')]('Sestek\x20NDA\x20%s\x20file\x20created',_0xc4ff25[_0xf2c1('0xcb')]));var _0x44ac85=this[_0xf2c1('0xc')][_0xf2c1('0xcc')](_0xc4ff25[_0xf2c1('0xcb')]);try{fs[_0xf2c1('0xcd')](_0xc4ff25[_0xf2c1('0xcb')]+_0xf2c1('0xce'));}catch(_0x529bd7){logger[_0xf2c1('0x2b')](_0x529bd7);}return _0x44ac85;}else{return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util['format'](_0xf2c1('0xcf'),_0xc4ff25['speech']));}}return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x212a7b,_0xf2c1('0xd0'));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0xd1')]=function(_0x1d0d13){logger['info'](util['format'](_0xf2c1('0xd2'),_0x1d0d13[_0xf2c1('0x36')]));return this['channel'][_0xf2c1('0x8d')](_0xf2c1('0xd1'));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0xd3')]=function(_0x39d6c6){logger[_0xf2c1('0x2d')](util['format'](_0xf2c1('0xd4'),_0x39d6c6[_0xf2c1('0x36')]));var _0x26afed='';if(_0x39d6c6[_0xf2c1('0xd5')]){if(!this[_0xf2c1('0x86')](_0x39d6c6['trunk_id'])){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x39d6c6,_0xf2c1('0xd6'));}else{var _0x1052bf=parseInt(_0x39d6c6[_0xf2c1('0xd5')],0xa);if(isNaN(_0x1052bf)){_0x26afed=_0x39d6c6[_0xf2c1('0xd5')];}else{_0x26afed=this['getTrunk'][_0xf2c1('0x7e')](this,_0x39d6c6[_0xf2c1('0xd5')]);if(!_0x26afed){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x39d6c6,_0xf2c1('0xd7'));}}}}else if(_0x39d6c6[_0xf2c1('0xd8')]){_0x26afed=_0x39d6c6[_0xf2c1('0xd8')];}else{return this[_0xf2c1('0xc')]['error'](_0x39d6c6,_0xf2c1('0xd6'));}var _0x29ad2a=this[_0xf2c1('0xc')][_0xf2c1('0x54')](_0xf2c1('0xb4'),[util[_0xf2c1('0x27')](_0xf2c1('0xd9'),_0x26afed,_0x39d6c6['phone']),_0x39d6c6['timeout'],_0x39d6c6[_0xf2c1('0xb6')],_0x39d6c6[_0xf2c1('0xb7')]]);if(_0x29ad2a[_0xf2c1('0x7a')]===-0x1){return _0x29ad2a;}return this['channel'][_0xf2c1('0x8d')](util['format'](_0xf2c1('0xb8'),_0xf2c1('0xb4')));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0xda')]=function(_0x6bff68){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0xdb'),_0x6bff68['label']));return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](_0xf2c1('0xda'));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0xdc')]=function(_0x4df7e3){logger['info'](util[_0xf2c1('0x27')](_0xf2c1('0xdd'),_0x4df7e3[_0xf2c1('0x36')]));if(_0x4df7e3[_0xf2c1('0x7f')]===0x0){return this[_0xf2c1('0x7d')](_0x4df7e3);}_0x4df7e3[_0xf2c1('0x7f')]-=0x1;if(!this['isConfigured'](_0x4df7e3[_0xf2c1('0xde')])){return this[_0xf2c1('0xc')]['error'](_0x4df7e3,_0xf2c1('0xdf'));}var _0x29fe27=this[_0xf2c1('0xe0')][_0xf2c1('0x7e')](this,_0x4df7e3['file_id']);if(!_0x29fe27){return this[_0xf2c1('0xc')]['error'](_0x4df7e3,_0xf2c1('0xe1'));}if(!this[_0xf2c1('0x86')](_0x4df7e3[_0xf2c1('0xab')])){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0xf2c1('0xaa'));}var _0x3ec490=this[_0xf2c1('0xc')][_0xf2c1('0xe2')](_0x29fe27,_0x4df7e3[_0xf2c1('0xe3')],_0x4df7e3[_0xf2c1('0xe4')]);var _0x165d6d=_0x3ec490[_0xf2c1('0x7a')]?_0x3ec490[_0xf2c1('0x7a')]['toString']():'';logger[_0xf2c1('0x2d')](_0xf2c1('0xe5'),JSON[_0xf2c1('0xe6')](_0x3ec490));if(_0x3ec490[_0xf2c1('0x7a')]===-0x1){this[_0xf2c1('0x34')]['sync'](this,_0x4df7e3,_0x165d6d);return _0x3ec490;}else if(_0x3ec490[_0xf2c1('0x7c')]===_0xf2c1('0x83')){_0x3ec490[_0xf2c1('0x7a')]=_0x165d6d[_0xf2c1('0x77')]>=parseInt(_0x4df7e3[_0xf2c1('0xe7')])?'x':'i';}else{_0x3ec490[_0xf2c1('0x7a')]=_0x165d6d[_0xf2c1('0x77')]>=parseInt(_0x4df7e3[_0xf2c1('0xe7')])&&_0x165d6d[_0xf2c1('0x77')]<=parseInt(_0x4df7e3[_0xf2c1('0xe4')])?'x':'i';}var _0x1b4376=this['getVariable'][_0xf2c1('0x7e')](this,_0x4df7e3[_0xf2c1('0xab')]);if(!_0x1b4376){return this['channel'][_0xf2c1('0x2b')](_0x4df7e3,'no\x20variable\x20found');}this[_0xf2c1('0xc')][_0xf2c1('0xad')](_0x1b4376,_0x165d6d);if(this['isConfigured'](_0x4df7e3['hiddendigitsnum'])){var _0x18de54=parseInt(_0x4df7e3[_0xf2c1('0xe8')],0xa);var _0x3ee809=rs['generate']({'charset':'*','length':_0x18de54});var _0x2696c1=_0x165d6d[_0xf2c1('0x77')];if(_0x2696c1>0x0){if(_0x2696c1>_0x18de54){this[_0xf2c1('0x34')]['sync'](this,_0x4df7e3,_0x4df7e3[_0xf2c1('0xe9')]===_0xf2c1('0xea')?_0x3ee809+_0x165d6d[_0xf2c1('0xeb')](_0x18de54):_0x165d6d[_0xf2c1('0xeb')](0x0,_0x2696c1-_0x18de54)+_0x3ee809);}else{this[_0xf2c1('0x34')]['sync'](this,_0x4df7e3,rs[_0xf2c1('0xec')]({'charset':'*','length':_0x2696c1}));}}else{this[_0xf2c1('0x34')][_0xf2c1('0x7e')](this,_0x4df7e3,'');}}else{this['createSquareDetailsReport'][_0xf2c1('0x7e')](this,_0x4df7e3,_0x165d6d);}return _0x3ec490;};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0xb')]=function(_0x98d0b){logger[_0xf2c1('0x2d')](util['format']('Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block',_0x98d0b[_0xf2c1('0x36')]));return this[_0xf2c1('0xdc')](_0x98d0b);};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0xed')]=function(_0x3d44ee){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0xee'),_0x3d44ee[_0xf2c1('0x36')]));this['createSquareDetailsReport'][_0xf2c1('0x7e')](this,_0x3d44ee,_0x3d44ee[_0xf2c1('0xef')]);return this[_0xf2c1('0xc')]['noop'](util['format'](_0xf2c1('0xf0'),_0x3d44ee[_0xf2c1('0xef')]));};AGIVertices['prototype']['awspolly']=function(_0x3cc45f){logger['info'](util[_0xf2c1('0x27')](_0xf2c1('0xf1'),_0x3cc45f['label']));if(!this['isConfigured'](_0x3cc45f[_0xf2c1('0x65')])||!this[_0xf2c1('0x86')](_0x3cc45f[_0xf2c1('0x66')])){return this[_0xf2c1('0xc')][_0xf2c1('0x8d')]('no\x20valid\x20credentials\x20configured');}if(!this[_0xf2c1('0x86')](_0x3cc45f['text'])){return this[_0xf2c1('0xc')]['noop'](_0xf2c1('0x91'));}this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util['format']('Trying\x20aws\x20Polly\x20%s',_0x3cc45f['text']));var _0x252063=this[_0xf2c1('0x64')][_0xf2c1('0x7e')](this,_0x3cc45f);if(_0x252063){this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0xf2'),_0x252063));var _0x5f08b5=this['channel'][_0xf2c1('0xcc')](_0x252063);try{fs[_0xf2c1('0xcd')](_0x252063+'.wav');}catch(_0x274a60){logger[_0xf2c1('0x2b')](_0x274a60);}return _0x5f08b5;}return this[_0xf2c1('0xc')]['error'](_0x3cc45f,_0xf2c1('0xf3'));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0xf4')]=function(_0x30a528){logger[_0xf2c1('0x2d')](util['format']('Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block',_0x30a528[_0xf2c1('0x36')]));if(!this['isConfigured'](_0x30a528['aws_access_key_id'])||!this[_0xf2c1('0x86')](_0x30a528[_0xf2c1('0x66')])){return this['channel'][_0xf2c1('0x8d')](_0xf2c1('0xf5'));}if(!this[_0xf2c1('0x86')](_0x30a528['aws_bot_name'])){return this['channel'][_0xf2c1('0x8d')](_0xf2c1('0xf6'));}if(!this[_0xf2c1('0x86')](_0x30a528[_0xf2c1('0x5d')])){return this[_0xf2c1('0xc')]['noop'](_0xf2c1('0x91'));}this[_0xf2c1('0xc')]['bot']=!![];this['createSquareDetailsReport'](_0x30a528);this[_0xf2c1('0x3e')](_0x30a528['text'],'in');this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0xf7'),_0x30a528[_0xf2c1('0x5d')]));var _0x1562e3=this[_0xf2c1('0x6b')][_0xf2c1('0x7e')](this,_0x30a528);if(_0x1562e3){for(var _0x1eb6f6 in _0x1562e3){if(_0x1562e3[_0xf2c1('0x74')](_0x1eb6f6)&&_[_0xf2c1('0xf8')](_0x1562e3[_0x1eb6f6])){this[_0xf2c1('0xc')][_0xf2c1('0xad')](util[_0xf2c1('0x27')](_0xf2c1('0xf9'),_0x1eb6f6[_0xf2c1('0xbd')]()),_0x1562e3[_0x1eb6f6]);}}if(_[_0xf2c1('0x40')](_0x1562e3[_0xf2c1('0xfa')])){return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](_0xf2c1('0xfb'));}else{this[_0xf2c1('0x3e')](_0x1562e3[_0xf2c1('0xfa')],_0xf2c1('0xbf'));return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util['format'](_0xf2c1('0xfc'),_0x1562e3[_0xf2c1('0xfa')]));}}return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x30a528,_0xf2c1('0xfd'));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0xfe')]=function(_0x2e62b){logger[_0xf2c1('0x2d')](util['format'](_0xf2c1('0xff'),_0x2e62b[_0xf2c1('0x36')],_0x2e62b[_0xf2c1('0x83')]));if(!this[_0xf2c1('0x86')](_0x2e62b[_0xf2c1('0x59')])){return this[_0xf2c1('0xc')][_0xf2c1('0x8d')]('no\x20key\x20configured');}var _0xa98f6b=_0xf2c1('0x100');var _0x15fdb7=util[_0xf2c1('0x27')](_0xf2c1('0x101'),FILES_PATH,rs[_0xf2c1('0xec')](0x4));var _0x1c40fc=util[_0xf2c1('0x27')](_0xf2c1('0x102'),_0x15fdb7,_0xa98f6b);var _0x2c0119=!![];if(_0x2e62b[_0xf2c1('0x103')]===_0xf2c1('0x104')){_0x2c0119=![];}var _0x157b64=this[_0xf2c1('0xc')][_0xf2c1('0x105')](_0x15fdb7,_0xa98f6b,_0x2e62b['intKey'],_0x2e62b['timeout'],undefined,_0x2c0119);if(_0x157b64[_0xf2c1('0x7a')]!==-0x1){this['channel'][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x106'),_0x1c40fc));var _0x396d99=this[_0xf2c1('0x6d')]['sync'](this,_0x2e62b,_0x1c40fc);if(_0x396d99){for(var _0x292a00 in _0x396d99){if(_0x396d99[_0xf2c1('0x74')](_0x292a00)){this[_0xf2c1('0xc')][_0xf2c1('0xad')](util[_0xf2c1('0x27')](_0xf2c1('0x107'),_0x292a00[_0xf2c1('0xbd')]()),_0x396d99[_0x292a00]);}}return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x108'),JSON[_0xf2c1('0xe6')](_0x396d99)));}}return _0x157b64;};AGIVertices['prototype'][_0xf2c1('0x109')]=function(_0x3ef521){logger[_0xf2c1('0x2d')](util['format'](_0xf2c1('0x10a'),_0x3ef521[_0xf2c1('0x36')]));if(!this['isConfigured'](_0x3ef521[_0xf2c1('0x10b')])){return this['channel']['noop'](_0xf2c1('0x10c'));}if(!this['isConfigured'](_0x3ef521[_0xf2c1('0x6f')])){return this['channel'][_0xf2c1('0x8d')](_0xf2c1('0x10d'));}var _0x2ea8a9=_0xf2c1('0x100');var _0x29c30e=util[_0xf2c1('0x27')]('%s/recordings/%s',FILES_PATH,rs[_0xf2c1('0xec')](0x4));var _0x501b03=util[_0xf2c1('0x27')]('%s.%s',_0x29c30e,_0x2ea8a9);var _0x2576a7=!![];if(_0x3ef521[_0xf2c1('0x103')]===_0xf2c1('0x104')){_0x2576a7=![];}var _0x47ecfd=this['channel'][_0xf2c1('0x105')](_0x29c30e,_0x2ea8a9,_0x3ef521['intKey'],_0x3ef521[_0xf2c1('0x83')],undefined,_0x2576a7);if(_0x47ecfd[_0xf2c1('0x7a')]!==-0x1){this['channel'][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x10e'),_0x501b03));var _0xf7bac0=this[_0xf2c1('0x6e')][_0xf2c1('0x7e')](this,_0x3ef521,_0x501b03);if(_0xf7bac0){for(var _0x492e60 in _0xf7bac0){if(_0xf7bac0[_0xf2c1('0x74')](_0x492e60)){this[_0xf2c1('0xc')][_0xf2c1('0xad')](util[_0xf2c1('0x27')](_0xf2c1('0x10f'),_0x492e60[_0xf2c1('0xbd')]()),_0xf7bac0[_0x492e60]);}}return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x110'),JSON[_0xf2c1('0xe6')](_0xf7bac0)));}}return _0x47ecfd;};AGIVertices['prototype'][_0xf2c1('0x111')]=function(_0x243c44){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x112'),_0x243c44[_0xf2c1('0x36')]));return this['channel'][_0xf2c1('0x113')](_0x243c44[_0xf2c1('0x114')],_0x243c44[_0xf2c1('0x3b')],_0x243c44['priority']);};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x115')]=function(_0x28a14c){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x116'),_0x28a14c[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x28a14c[_0xf2c1('0x117')])){return this['channel'][_0xf2c1('0x2b')](_0x28a14c,'no\x20condition\x20configured');}try{var _0x592051=eval(_0x28a14c['condition'])?_0xf2c1('0x118'):_0xf2c1('0x119');this['channel'][_0xf2c1('0x8d')](util['format'](_0xf2c1('0x11a'),_0x28a14c['condition'],_0x592051));return{'code':0xc8,'result':_0x592051};}catch(_0x4d5fc8){return{'code':0xc8,'result':_0xf2c1('0x119')};}};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x11b')]=function(_0x36bc7c){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')]('Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block',_0x36bc7c['label']));if(!this[_0xf2c1('0x86')](_0x36bc7c[_0xf2c1('0x11c')])){return this[_0xf2c1('0xc')]['error'](_0x36bc7c,_0xf2c1('0x11d'));}var _0x44933a=this['getIntervals'][_0xf2c1('0x7e')](this,_0x36bc7c[_0xf2c1('0x11c')]);if(!_0x44933a){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x36bc7c,_0xf2c1('0x11e'));}for(var _0x11c720=0x0;_0x11c720<_0x44933a['length'];_0x11c720+=0x1){var _0xeee79=this[_0xf2c1('0xc')][_0xf2c1('0xf')](util['format']('IFTIME(%s?true:false)',_0x44933a[_0x11c720]));if(_0xeee79['result']===-0x1){return _0xeee79;}logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')]('IFTIME\x20%s\x20%s',_0x44933a[_0x11c720],_0xeee79[_0xf2c1('0x7c')]));if(_0xeee79[_0xf2c1('0x7c')]===_0xf2c1('0x118')){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x11f'),_0x44933a[_0x11c720],_0xf2c1('0x118')));this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util['format'](_0xf2c1('0x11f'),_0x44933a[_0x11c720],_0xf2c1('0x118')));return{'code':0xc8,'result':'true'};}else{logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x11f'),_0x44933a[_0x11c720],_0xf2c1('0x119')));this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x11f'),_0x44933a[_0x11c720],_0xf2c1('0x119')));}}return{'code':0xc8,'result':_0xf2c1('0x119')};};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x120')]=function(_0x1f1899){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x121'),_0x1f1899[_0xf2c1('0x36')]));return this[_0xf2c1('0xc')][_0xf2c1('0x120')]();};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x122')]=function(_0x1dee73){logger['info'](util[_0xf2c1('0x27')](_0xf2c1('0x123'),_0x1dee73[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x1dee73[_0xf2c1('0x59')])){return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](_0xf2c1('0xba'));}var _0x45ffa6=_0xf2c1('0x100');var _0x4fa7ee=util['format'](_0xf2c1('0x101'),FILES_PATH,rs[_0xf2c1('0xec')](0x4));var _0x9ef1dd=util[_0xf2c1('0x27')]('%s.%s',_0x4fa7ee,_0x45ffa6);var _0x391efa=!![];if(_0x1dee73[_0xf2c1('0x103')]===_0xf2c1('0x104')){_0x391efa=![];}var _0x1a2a9e=this[_0xf2c1('0xc')][_0xf2c1('0x105')](_0x4fa7ee,_0x45ffa6,_0x1dee73['intKey'],_0x1dee73[_0xf2c1('0x83')],undefined,_0x391efa);if(_0x1a2a9e[_0xf2c1('0x7a')]!==-0x1){this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')]('ispeech\x20%s\x20file\x20created',_0x9ef1dd));var _0x5058de=this['ispeechASR'][_0xf2c1('0x7e')](this,_0x1dee73,_0x9ef1dd);if(_0x5058de){for(var _0x136f29 in _0x5058de){if(_0x5058de[_0xf2c1('0x74')](_0x136f29)){this[_0xf2c1('0xc')][_0xf2c1('0xad')](util[_0xf2c1('0x27')](_0xf2c1('0x124'),_0x136f29['toUpperCase']()),_0x5058de[_0x136f29]);}}return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util['format'](_0xf2c1('0x125'),JSON['stringify'](_0x5058de)));}}return _0x1a2a9e;};AGIVertices['prototype'][_0xf2c1('0x126')]=function(_0x3fab95){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x127'),_0x3fab95[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x3fab95['key'])){return this['channel'][_0xf2c1('0x8d')](_0xf2c1('0xba'));}if(!this[_0xf2c1('0x86')](_0x3fab95[_0xf2c1('0x5d')])){return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](_0xf2c1('0x91'));}this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x128'),_0x3fab95[_0xf2c1('0x5d')]));var _0x32896e=this['ispeechTTS']['sync'](this,_0x3fab95);if(_0x32896e){this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')]('ispeech\x20%s\x20file\x20created',_0x32896e));var _0x382e63=this[_0xf2c1('0xc')][_0xf2c1('0xcc')](_0x32896e,_0x3fab95['intKey']);try{fs[_0xf2c1('0xcd')](_0x32896e+_0xf2c1('0xce'));}catch(_0x5a370c){logger['error'](_0x5a370c);}return _0x382e63;}return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x3fab95,_0xf2c1('0x129'));};AGIVertices['prototype']['login']=function(_0x54af4a){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x12a'),_0x54af4a[_0xf2c1('0x36')]));if(!this['isConfigured'](_0x54af4a[_0xf2c1('0x12b')])){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x54af4a,'no\x20find\x20by\x20configured');}logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x12c'),this[_0xf2c1('0xc')][_0xf2c1('0x38')],_0x54af4a[_0xf2c1('0x12b')]));var _0x4d1d6b=this['agentLogin'][_0xf2c1('0x7e')](this,_0x54af4a[_0xf2c1('0x12b')]);if(_0x4d1d6b){logger['info'](util['format'](_0xf2c1('0x12d'),this[_0xf2c1('0xc')][_0xf2c1('0x38')],_0x54af4a[_0xf2c1('0x12b')]));this['channel']['noop'](util[_0xf2c1('0x27')](_0xf2c1('0x12d'),this['channel'][_0xf2c1('0x38')],_0x54af4a[_0xf2c1('0x12b')]));return{'code':0xc8,'result':_0xf2c1('0x12e')};}else{logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xf2c1('0xc')][_0xf2c1('0x38')],_0x54af4a[_0xf2c1('0x12b')]));this['channel'][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x12f'),this['channel'][_0xf2c1('0x38')],_0x54af4a['findBy']));return{'code':0xc8,'result':_0xf2c1('0x130')};}};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x131')]=function(_0x4e03ae){logger['info'](util[_0xf2c1('0x27')]('Enter\x20in\x20LOGOUT\x20(%s)\x20block',_0x4e03ae[_0xf2c1('0x36')]));if(!this['isConfigured'](_0x4e03ae[_0xf2c1('0x12b')])){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x4e03ae,'no\x20find\x20by\x20configured');}logger['info'](util[_0xf2c1('0x27')](_0xf2c1('0x12c'),this['channel']['callerid'],_0x4e03ae[_0xf2c1('0x12b')]));var _0x5f0a57=this['agentLogout'][_0xf2c1('0x7e')](this,_0x4e03ae[_0xf2c1('0x12b')]);if(_0x5f0a57){logger['info'](util[_0xf2c1('0x27')](_0xf2c1('0x12d'),this[_0xf2c1('0xc')]['callerid'],_0x4e03ae[_0xf2c1('0x12b')]));this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xf2c1('0xc')][_0xf2c1('0x38')],_0x4e03ae[_0xf2c1('0x12b')]));return{'code':0xc8,'result':_0xf2c1('0x12e')};}else{logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xf2c1('0xc')]['callerid'],_0x4e03ae[_0xf2c1('0x12b')]));this[_0xf2c1('0xc')]['noop'](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xf2c1('0xc')][_0xf2c1('0x38')],_0x4e03ae[_0xf2c1('0x12b')]));return{'code':0xc8,'result':_0xf2c1('0x130')};}};AGIVertices['prototype'][_0xf2c1('0x132')]=function(_0x26e4e0){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')]('Enter\x20in\x20MATH\x20(%s)\x20block',_0x26e4e0[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x26e4e0[_0xf2c1('0x133')])){return this[_0xf2c1('0xc')]['error'](_0x26e4e0,_0xf2c1('0x134'));}this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x135'),_0x26e4e0[_0xf2c1('0x133')]));var _0x57324c=eval(_0x26e4e0[_0xf2c1('0x133')]);if(!this[_0xf2c1('0x86')](_0x26e4e0[_0xf2c1('0xab')])){return this['channel'][_0xf2c1('0x8d')](_0xf2c1('0xaa'));}var _0x52a269=this['getVariable'][_0xf2c1('0x7e')](this,_0x26e4e0['variable_id']);if(!_0x52a269){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x26e4e0,_0xf2c1('0x136'));}if(_[_0xf2c1('0x137')](_0x57324c)){var _0x407039=this;_0x57324c[_0xf2c1('0xac')](function(_0x5c1b82,_0x1f75aa){_0x407039[_0xf2c1('0xc')][_0xf2c1('0xad')](util[_0xf2c1('0x27')](_0xf2c1('0x138'),_0x52a269,_0x1f75aa),_0x5c1b82);});return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x139'),_0x52a269));}else{return this['channel'][_0xf2c1('0xad')](_0x52a269,_0x57324c);}};AGIVertices[_0xf2c1('0xe')]['menu']=function(_0x3a7de6){logger[_0xf2c1('0x2d')](util['format'](_0xf2c1('0x13a'),_0x3a7de6[_0xf2c1('0x36')]));if(_0x3a7de6['retry']===0x0){return this['maxRetry'](_0x3a7de6);}_0x3a7de6['retry']-=0x1;if(!this[_0xf2c1('0x86')](_0x3a7de6[_0xf2c1('0xde')])){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x3a7de6,_0xf2c1('0xdf'));}var _0x41105a=this[_0xf2c1('0xe0')]['sync'](this,_0x3a7de6[_0xf2c1('0xde')]);if(!_0x41105a){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x3a7de6,_0xf2c1('0xe1'));}var _0x188c9c=this[_0xf2c1('0xc')]['getData'](_0x41105a,_0x3a7de6[_0xf2c1('0xe3')],_0x3a7de6[_0xf2c1('0x13b')]);var _0x40a77d=_0x188c9c['result'];if(_0x188c9c['result']===-0x1){this[_0xf2c1('0x34')][_0xf2c1('0x7e')](this,_0x3a7de6,'-1');return _0x188c9c;}else if(_0x188c9c['extra']===_0xf2c1('0x83')){_0x188c9c[_0xf2c1('0x7a')]=_0x188c9c[_0xf2c1('0x7a')][_0xf2c1('0x77')]>0x0?_0x188c9c[_0xf2c1('0x7a')]:'t';}else if(_[_0xf2c1('0x3f')](_0x188c9c[_0xf2c1('0x7a')])){_0x188c9c[_0xf2c1('0x7a')]='#';_0x40a77d='#';}if(!this[_0xf2c1('0x86')](_0x3a7de6[_0xf2c1('0xab')])){this[_0xf2c1('0xc')][_0xf2c1('0x8d')]('no\x20variable\x20selected\x20for\x20the\x20result');}else{var _0x144a31=this['getVariable'][_0xf2c1('0x7e')](this,_0x3a7de6[_0xf2c1('0xab')]);if(!_0x144a31){return this[_0xf2c1('0xc')]['error'](_0x3a7de6,'no\x20variable\x20found');}this[_0xf2c1('0xc')][_0xf2c1('0xad')](_0x144a31,_0x40a77d);}this['createSquareDetailsReport'][_0xf2c1('0x7e')](this,_0x3a7de6,_0x40a77d);return _0x188c9c;};AGIVertices[_0xf2c1('0xe')]['noop']=function(_0x3813ee){logger['info'](util['format'](_0xf2c1('0x13c'),_0x3813ee[_0xf2c1('0x36')]));return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](_0x3813ee[_0xf2c1('0x13d')]||_0x3813ee[_0xf2c1('0x36')]);};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x13e')]=function(_0x597bb9){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x13f'),_0x597bb9[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x597bb9['findBy'])){return this['channel']['error'](_0x597bb9,_0xf2c1('0x140'));}logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this['channel'][_0xf2c1('0x38')],_0x597bb9['findBy']));var _0x39e078=this[_0xf2c1('0x49')]['sync'](this,_0x597bb9[_0xf2c1('0x141')]);var _0xad89e2=this[_0xf2c1('0x4b')]['sync'](this,_0x597bb9[_0xf2c1('0x12b')],_0x39e078);if(_0xad89e2){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x12d'),this[_0xf2c1('0xc')][_0xf2c1('0x38')],_0x597bb9['findBy']));this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xf2c1('0xc')]['callerid'],_0x597bb9['findBy']));return{'code':0xc8,'result':_0xf2c1('0x12e')};}else{logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xf2c1('0xc')][_0xf2c1('0x38')],_0x597bb9[_0xf2c1('0x12b')]));this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x12d'),this['channel'][_0xf2c1('0x38')],_0x597bb9[_0xf2c1('0x12b')]));return{'code':0xc8,'result':_0xf2c1('0x130')};}};AGIVertices[_0xf2c1('0xe')]['playback']=function(_0x3d298d){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x142'),_0x3d298d[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x3d298d[_0xf2c1('0xde')])){return this['channel']['error'](_0x3d298d,_0xf2c1('0xdf'));}var _0x8841e0=this['getSound']['sync'](this,_0x3d298d[_0xf2c1('0xde')]);if(!_0x8841e0){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x3d298d,_0xf2c1('0xe1'));}var _0x4d1916=this['channel']['exec']('PLAYBACK',[_0x8841e0,_0x3d298d[_0xf2c1('0xb6')]]);if(_0x4d1916['result']===-0x1){return _0x4d1916;}return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util['format'](_0xf2c1('0x8e'),_0xf2c1('0x143'),_0x8841e0));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x144')]=function(_0x537d65){logger['info'](util['format']('Enter\x20in\x20QUEUE\x20(%s)\x20block',_0x537d65['label']));if(!this[_0xf2c1('0x86')](_0x537d65[_0xf2c1('0x145')])){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x537d65,'no\x20queue\x20selected');}var _0x26b23f='';var _0x4e7a2a=parseInt(_0x537d65['queue_id'],0xa);if(isNaN(_0x4e7a2a)){_0x26b23f=_0x537d65[_0xf2c1('0x145')];}else{_0x26b23f=this[_0xf2c1('0x14')]['sync'](this,_0x537d65[_0xf2c1('0x145')]);if(!_0x26b23f){return this['channel'][_0xf2c1('0x2b')](_0x537d65,'no\x20queue\x20found');}}var _0xc966f8='';if(this[_0xf2c1('0x86')](_0x537d65[_0xf2c1('0xde')])){var _0x120757=this[_0xf2c1('0xe0')]['sync'](this,_0x537d65[_0xf2c1('0xde')]);if(_0x120757){_0xc966f8=_0x120757;}}this[_0xf2c1('0x34')]['sync'](this,_0x537d65,_0x26b23f);if(_0x537d65[_0xf2c1('0xb6')][_0xf2c1('0x146')]('x')<0x0){_0x537d65[_0xf2c1('0xb6')]+='x';}if(_0x537d65['opts'][_0xf2c1('0x146')]('X')<0x0){_0x537d65[_0xf2c1('0xb6')]+='X';}this[_0xf2c1('0xc')]['setVariable']('XMCS-QUEUE',_0x26b23f?_0x26b23f[_0xf2c1('0x147')]():'');var _0x2cb550=this[_0xf2c1('0xc')]['exec']('QUEUE',[_0x26b23f,_0x537d65[_0xf2c1('0xb6')],_0x537d65[_0xf2c1('0xb7')],_0xc966f8,_0x537d65[_0xf2c1('0x83')],_0x537d65['agi'],_0x537d65[_0xf2c1('0x148')],_0x537d65[_0xf2c1('0x149')],'',_0x537d65[_0xf2c1('0x14a')]]);if(_0x2cb550[_0xf2c1('0x7a')]===-0x1){return _0x2cb550;}return this['channel'][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x8e'),_0xf2c1('0x14b'),_0x26b23f));};AGIVertices[_0xf2c1('0xe')]['record']=function(_0x24e7e9){logger['info'](util[_0xf2c1('0x27')](_0xf2c1('0x14c'),_0x24e7e9['label']));var _0x28d0e1=_0x24e7e9[_0xf2c1('0x14d')]||_0xf2c1('0x100');var _0x1dcc29=util[_0xf2c1('0x27')](_0xf2c1('0x14e'),this[_0xf2c1('0xc')][_0xf2c1('0x35')],rs[_0xf2c1('0xec')](0x5));var _0xec2814=util['format']('%s/recordings/%s.%s',FILES_PATH,_0x1dcc29,_0x28d0e1);var _0x5cf776=util[_0xf2c1('0x27')](_0xf2c1('0x101'),FILES_PATH,_0x1dcc29);this[_0xf2c1('0x39')][_0xf2c1('0x7e')](this,_0x24e7e9,_0x1dcc29,_0xec2814);this[_0xf2c1('0xc')][_0xf2c1('0xad')](_0xf2c1('0x14f'),_0x1dcc29);logger['info'](_0xf2c1('0x150'),_0x5cf776,_0x28d0e1,_0x24e7e9['escape_digits'],_0x24e7e9[_0xf2c1('0x83')]);return this['channel'][_0xf2c1('0x105')](_0x5cf776,_0x28d0e1,_0x24e7e9[_0xf2c1('0x151')],_0x24e7e9[_0xf2c1('0x83')],undefined,!![]);};AGIVertices['prototype'][_0xf2c1('0x152')]=function(_0x345565){logger[_0xf2c1('0x2d')](util['format']('Enter\x20in\x20SAYDIGITS\x20(%s)\x20block',_0x345565['label']));return this[_0xf2c1('0xc')][_0xf2c1('0x153')](_0x345565[_0xf2c1('0x154')]['replace'](/\s+/g,''),_0x345565[_0xf2c1('0x151')]);};AGIVertices['prototype']['saynumber']=function(_0x4127a2){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')]('Enter\x20in\x20SAYNUMBER\x20(%s)\x20block',_0x4127a2['label']));return this[_0xf2c1('0xc')][_0xf2c1('0x155')](_0x4127a2[_0xf2c1('0x156')][_0xf2c1('0x157')](/\s+/g,''),_0x4127a2[_0xf2c1('0x151')]);};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x158')]=function(_0x531771){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')]('Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block',_0x531771[_0xf2c1('0x36')]));return this['channel'][_0xf2c1('0x159')](_0x531771[_0xf2c1('0x5d')],_0x531771[_0xf2c1('0x151')]);};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x15a')]=function(_0x255eee){logger['info'](util[_0xf2c1('0x27')](_0xf2c1('0x15b'),_0x255eee[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x255eee['account_id'])){return this[_0xf2c1('0xc')]['noop'](_0xf2c1('0x15c'));}var _0x59614c=this[_0xf2c1('0x1f')][_0xf2c1('0x7e')](this,_0x255eee[_0xf2c1('0x15d')]);if(!_0x59614c||!_0x59614c['Smtp']){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x255eee,_0xf2c1('0x15e'));}var _0x4d328f={'from':util[_0xf2c1('0x27')](_0xf2c1('0x15f'),_0x59614c[_0xf2c1('0x13')],_0x59614c[_0xf2c1('0x160')]||_0x59614c[_0xf2c1('0x161')][_0xf2c1('0x162')]),'to':_0x255eee['to']||'','cc':_0x255eee['cc']||'','bcc':_0x255eee[_0xf2c1('0x163')]||'','subject':_0x255eee['subject'],'html':_0x255eee[_0xf2c1('0x5d')],'text':_0x255eee['text']};var _0x3a2287={'tls':{'rejectUnauthorized':![]}};if(_0x59614c[_0xf2c1('0x161')][_0xf2c1('0x164')]){_0x3a2287[_0xf2c1('0x164')]=_0x59614c[_0xf2c1('0x161')][_0xf2c1('0x164')];}else{_0x3a2287[_0xf2c1('0x165')]=_0x59614c[_0xf2c1('0x161')][_0xf2c1('0x165')];_0x3a2287[_0xf2c1('0x166')]=_0x59614c[_0xf2c1('0x161')][_0xf2c1('0x166')];_0x3a2287[_0xf2c1('0x167')]=_0x59614c[_0xf2c1('0x161')][_0xf2c1('0x167')];}if(_0x59614c[_0xf2c1('0x161')][_0xf2c1('0x168')]){_0x3a2287['auth']={'user':_0x59614c[_0xf2c1('0x161')]['user'],'pass':_0x59614c['Smtp'][_0xf2c1('0x169')]};}if(this['isConfigured'](_0x255eee[_0xf2c1('0x16a')])){}logger[_0xf2c1('0xb0')](_0xf2c1('0x16b'),JSON['stringify'](_0x4d328f));this[_0xf2c1('0x34')][_0xf2c1('0x7e')](this,_0x255eee,_0x255eee[_0xf2c1('0x15d')]);this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x16c'),_0x59614c['name']));this[_0xf2c1('0x21')][_0xf2c1('0x7e')](this,_0x3a2287,_0x4d328f);return this[_0xf2c1('0xc')]['noop'](_0xf2c1('0x16d'));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x16e')]=function(_0x2b02c3){logger[_0xf2c1('0x2d')](util['format'](_0xf2c1('0x16f'),_0x2b02c3[_0xf2c1('0x36')]));return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](_0xf2c1('0x170'));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x171')]=function(_0x265673){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x172'),_0x265673[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x265673[_0xf2c1('0x173')])){return this[_0xf2c1('0xc')]['noop'](_0xf2c1('0x174'));}var _0x5d7b98=this['getSmsAccount'][_0xf2c1('0x7e')](this,_0x265673[_0xf2c1('0x173')]);if(!_0x5d7b98){return this['channel'][_0xf2c1('0x2b')](_0x265673,_0xf2c1('0x175'));}var _0x2221d={'body':_0x265673[_0xf2c1('0x176')],'phone':_0x265673['to']||'','SmsAccountId':_0x5d7b98['id']};logger[_0xf2c1('0xb0')](_0xf2c1('0x177'),JSON[_0xf2c1('0xe6')](_0x2221d));this[_0xf2c1('0x34')][_0xf2c1('0x7e')](this,_0x265673,_0x265673[_0xf2c1('0x173')]);this[_0xf2c1('0xc')]['noop'](util[_0xf2c1('0x27')](_0xf2c1('0x178'),_0x5d7b98[_0xf2c1('0x13')]));this['createSmsMessage']['sync'](this,_0x2221d);return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](_0xf2c1('0x179'));};AGIVertices['prototype'][_0xf2c1('0x17a')]=function(_0x331784){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x17b'),_0x331784[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x331784[_0xf2c1('0xab')])){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x331784,_0xf2c1('0x17c'));}var _0xdc82a4=this[_0xf2c1('0xf')][_0xf2c1('0x7e')](this,_0x331784['variable_id']);if(!_0xdc82a4){return this[_0xf2c1('0xc')]['error'](_0x331784,'no\x20variable\x20found');}return this[_0xf2c1('0xc')][_0xf2c1('0xad')](_0xdc82a4,_0x331784[_0xf2c1('0x17d')]);};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x17e')]=function(_0x4d2598){logger[_0xf2c1('0x2d')](util['format'](_0xf2c1('0x17f'),_0x4d2598[_0xf2c1('0x36')]));this['channel'][_0xf2c1('0x8d')]('START\x20CALLY\x20SQUARE');if(_0x4d2598[_0xf2c1('0x84')]===_0xf2c1('0x180')){this[_0xf2c1('0xc')][_0xf2c1('0x8d')]('Answer');return this[_0xf2c1('0xc')][_0xf2c1('0x84')]();}return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](_0xf2c1('0x181'));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x182')]=function(_0x4d6e07){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x183'),_0x4d6e07['label']));if(!this[_0xf2c1('0x86')](_0x4d6e07[_0xf2c1('0x184')])){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x4d6e07,_0xf2c1('0x185'));}var _0x32fdd7=this[_0xf2c1('0x16')]['sync'](this,_0x4d6e07[_0xf2c1('0x184')]);if(!this[_0xf2c1('0x86')](_0x32fdd7)){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x4d6e07,util[_0xf2c1('0x27')](_0xf2c1('0x186'),_0x4d6e07[_0xf2c1('0x184')]));}if(_0x32fdd7===this[_0xf2c1('0xc')]['arg_1']){return this['channel'][_0xf2c1('0x2b')](_0x4d6e07,_0xf2c1('0x187'));}this['createSquareDetailsReport'][_0xf2c1('0x7e')](this,_0x4d6e07,_0x32fdd7);var _0x98b879=this['channel']['exec'](_0xf2c1('0x188'),util[_0xf2c1('0x27')](_0xf2c1('0x189'),config[_0xf2c1('0x8')][_0xf2c1('0x165')]||_0xf2c1('0x18a'),_0x32fdd7,this[_0xf2c1('0xc')]['arg_1']));if(_0x98b879[_0xf2c1('0x7a')]===-0x1){return _0x98b879;}return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util['format'](_0xf2c1('0x8e'),_0xf2c1('0x188'),_0x32fdd7));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x18b')]=function(_0x489a08){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x18c'),_0x489a08['label']));var _0xc271a6=this['shellCommand']['sync'](this,_0x489a08[_0xf2c1('0x81')]);this[_0xf2c1('0x34')][_0xf2c1('0x7e')](this,_0x489a08,_0x489a08[_0xf2c1('0x81')]);if(this[_0xf2c1('0x86')](_0x489a08[_0xf2c1('0xab')])){var _0x1b02bb=this[_0xf2c1('0xf')][_0xf2c1('0x7e')](this,_0x489a08['variable_id']);if(_0x1b02bb){this[_0xf2c1('0xc')]['setVariable'](_0x1b02bb,_0xc271a6);return this['channel'][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x18d'),_0x489a08[_0xf2c1('0x81')],_0x1b02bb));}}return this['channel'][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x18e'),_0x489a08[_0xf2c1('0x81')]));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x18f')]=function(_0x431a86){logger[_0xf2c1('0x2d')](util['format'](_0xf2c1('0x190'),_0x431a86[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x431a86[_0xf2c1('0x5d')])){return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](_0xf2c1('0x91'));}this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util['format'](_0xf2c1('0x191'),_0x431a86[_0xf2c1('0x5d')]));var _0xd03a95=this['googleTTS'][_0xf2c1('0x7e')](this,_0x431a86);if(_0xd03a95){this['channel'][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x192'),_0xd03a95));var _0x469e15=this[_0xf2c1('0xc')][_0xf2c1('0xcc')](_0xd03a95);try{fs[_0xf2c1('0xcd')](_0xd03a95+'.wav');}catch(_0x5723a2){logger[_0xf2c1('0x2b')](_0x5723a2);}return _0x469e15;}return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x431a86,_0xf2c1('0x193'));};AGIVertices['prototype'][_0xf2c1('0x194')]=function(_0x1ca4a8){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x195'),_0x1ca4a8[_0xf2c1('0x36')]));if(!this[_0xf2c1('0x86')](_0x1ca4a8['findBy'])){return this['channel']['error'](_0x1ca4a8,'no\x20find\x20by\x20configured');}logger['info'](util[_0xf2c1('0x27')](_0xf2c1('0x12c'),this[_0xf2c1('0xc')][_0xf2c1('0x38')],_0x1ca4a8['findBy']));var _0x369682=this[_0xf2c1('0x4d')][_0xf2c1('0x7e')](this,_0x1ca4a8[_0xf2c1('0x12b')]);if(_0x369682){logger['info'](util['format']('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0xf2c1('0x38')],_0x1ca4a8[_0xf2c1('0x12b')]));this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x12d'),this[_0xf2c1('0xc')][_0xf2c1('0x38')],_0x1ca4a8[_0xf2c1('0x12b')]));return{'code':0xc8,'result':'success'};}else{logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x12f'),this['channel'][_0xf2c1('0x38')],_0x1ca4a8[_0xf2c1('0x12b')]));this[_0xf2c1('0xc')]['noop'](util[_0xf2c1('0x27')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xf2c1('0xc')][_0xf2c1('0x38')],_0x1ca4a8[_0xf2c1('0x12b')]));return{'code':0xc8,'result':_0xf2c1('0x130')};}};AGIVertices['prototype'][_0xf2c1('0x196')]=function(_0x18849b){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x197'),_0x18849b[_0xf2c1('0x36')]));var _0x41117b=this['channel']['exec']('VOICEMAIL',[_0x18849b[_0xf2c1('0x198')],_0x18849b[_0xf2c1('0x8c')]]);if(_0x41117b[_0xf2c1('0x7a')]===-0x1){return _0x41117b;}return this[_0xf2c1('0xc')][_0xf2c1('0x8d')](util[_0xf2c1('0x27')](_0xf2c1('0x8e'),'VOICEMAIL',_0x18849b['mailbox']));};AGIVertices[_0xf2c1('0xe')][_0xf2c1('0x199')]=function(_0x54ae83){logger[_0xf2c1('0x2d')](util[_0xf2c1('0x27')](_0xf2c1('0x19a'),_0x54ae83['label']));if(!this[_0xf2c1('0x86')](_0x54ae83['variable_id'])){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x54ae83,_0xf2c1('0x17c'));}var _0x194d71=this['getVariable']['sync'](this,_0x54ae83[_0xf2c1('0xab')]);if(!_0x194d71){return this[_0xf2c1('0xc')][_0xf2c1('0x2b')](_0x54ae83,'no\x20variable\x20found');}var _0xbcdc98=this[_0xf2c1('0xc')][_0xf2c1('0xf')](_0x194d71);return{'code':0xc8,'result':_0xbcdc98['extra']?_0xbcdc98[_0xf2c1('0x7c')]:'-'};};String[_0xf2c1('0xe')][_0xf2c1('0x78')]=function(_0x17d2d1,_0x530cdc){return this[_0xf2c1('0x76')](_0x17d2d1)['join'](_0x530cdc);};module[_0xf2c1('0x19b')]=AGIVertices;