Built motion from commit cb845558.|2.6.34
[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 _0x202c=['agentLogout','agentLogin','internal','%s/%s@from-sip/n','shellCommand','exec','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','MALE','audioEncoding','MP3','googleTTS','google_tts_language','restAPI','url','method','timeout','number','includes','POST','PUT','toUpperCase','rawBody','parse','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','render','headers','stringify','body','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','dialogflow_language','googleDialogflowV2','dialogflowV2_project_id','private_key','dialogflowV2_language','sestekNDA','ispeechTTS','ispeech_tts_language','en-US','ispeechASR','isConfigured','model','awsPolly','aws_access_key_id','aws_polly_region','aws_polly_voice','Amy','aws_text_type','awsLex','aws_secret_access_key','aws_lex_region','googleASR','google_asr_language','tildeASR','appid','appsecret','uri','clear','clone','isString','replaceObjectAllVariables','replaceAllVariables','hasOwnProperty','isPlainObject','recursiveNodeIndex','length','saveRestApiResult','%s.%s','setVariable','split','replaceAll','extra','getAndSetVariable','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','mrcpsynth','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','noop','no\x20grammar\x20configured','grammar','MRCPRecog','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','Enter\x20in\x20AGI\x20(%s)\x20block','command','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','scheduledAt','delay','add','minutes','callback_priority','phone','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','Executed\x20command\x20%s\x20%s','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','no\x20text\x20configured','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','database','odbc_id','no\x20database\x20selected','query','no\x20query\x20configured','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','forEach','%s_ROWS_COUNT','variable\x20%s\x20set','dial','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','getUser','sip_id','DIAL','SIP/%s','opts','Executed\x20command\x20%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','out','Dialogflow\x20Result\x20%s','speech','Dialogflow\x20is\x20unreachable','dialogflowV2','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','no\x20project_id\x20configured','no\x20client_email\x20configured','no\x20private_key\x20configured','no\x20anguage\x20configured','Trying\x20DialogflowV2:\x20%s','providerResponse','DialogflowV2\x20is\x20unreachable','sesteknda','no\x20ndauth\x20url\x20configured','username','password','no\x20password\x20configured','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','audiofile','streamFile','.wav','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','retry','file_id','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','response','test','mindigit','maxdigit','no\x20variable\x20found','generate','hiddendigitspos','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20%s\x20file\x20created','unlink','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','aws_bot_name','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','amazonlex','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','beep','NOBEEP','recordFile','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appsecret\x20configured','%s/recordings/%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','false','EVAL\x20CONDITION\x20%s\x20%s','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','no\x20interval\x20configured','interval_id','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','true','hangup','ispeechasr','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','no\x20find\x20by\x20configured','findBy','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','FIND\x20AGENT\x20%s\x20BY\x20%s','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','math\x20%s','%s[%s]','getData','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','pause','getPause','pause_id','PLAYBACK','no\x20queue\x20selected','queue_id','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','macro','position','record','recordingFormat','%s_%s','%s/recordings/%s.%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','restapi','Enter\x20in\x20RESTAPI\x20(%s)\x20block','Response:','%s_STATUS_CODE','statusCode','200','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','account_id','no\x20mail\x20account\x20configured','Smtp','\x22%s\x22\x20<%s>','email','user','subject','template_id','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','smtpOptions','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','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','XMCS-UNIQUEID','yes','Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','getSquareProject','no\x20subproject\x20found\x20with\x20id\x20%d','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','agi://%s/square,\x22%s\x22,\x22%s\x22','host','127.0.0.1','system','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','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','mailbox','VOICEMAIL','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','util','odbc','randomstring','moment','request-promise','../../config/logger','agi','../../config/environment','/var/opt/motion2/server/files','rawHeaders','menu','getsecretdigits','channel','rpc','mailRpc','prototype','getVariable','getVariableById','name','catch','getVoiceQueue','getVoiceQueueById','getSquareProjectById','then','getSquareOdbc','getSquareOdbcById','dsn','getTrunk','getTrunkById','getSound','getMailAccount','getMailAccountById','sendMailMessage','getIntervals','IntervalId','interval','map','Intervals','format','%s/sounds/converted/%s','getQueryOdbc','open','Error\x20getting\x20ODBC\x20connection\x20%s','info','ODBC\x20connection\x20successfully','Error\x20executing\x20query\x20%s','close','error','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','arg_1','callerid','createSquareRecording','context','extension','priority','accountcode','dnid','file','createSquareMessage','createCmContact','isEmpty','isNil','callback_','random','lastName','list_id','callback','Callback\x20scheduled\x20at\x20','toString','getPauseById','agentPause','agent','agentUnpause'];(function(_0x1f5ee3,_0x42d31b){var _0x2db824=function(_0xa3030b){while(--_0xa3030b){_0x1f5ee3['push'](_0x1f5ee3['shift']());}};_0x2db824(++_0x42d31b);}(_0x202c,0x178));var _0xc202=function(_0x50ade0,_0x27b006){_0x50ade0=_0x50ade0-0x0;var _0x28472e=_0x202c[_0x50ade0];return _0x28472e;};'use strict';var fs=require('fs');var util=require(_0xc202('0x0'));var _=require('lodash');var sh=require('shelljs');var odbc=require(_0xc202('0x1'))();var rs=require(_0xc202('0x2'));var moment=require(_0xc202('0x3'));var Mustache=require('mustache');var rp=require(_0xc202('0x4'));var logger=require(_0xc202('0x5'))(_0xc202('0x6'));var config=require(_0xc202('0x7'));var scripts=require('./scripts');var FILES_PATH=_0xc202('0x8');var recursiveMapAttributes=[_0xc202('0x9'),'rawBody'];var verticesWithRetry=[_0xc202('0xa'),'getdigits',_0xc202('0xb')];var AGIVertices=function(_0x5978fe,_0x176cb7,_0x336fc8){this[_0xc202('0xc')]=_0x5978fe;this[_0xc202('0xd')]=_0x176cb7;this[_0xc202('0xe')]=_0x336fc8;};AGIVertices[_0xc202('0xf')][_0xc202('0x10')]=function(_0x1991a3,_0x630e57){this[_0xc202('0xd')][_0xc202('0x11')](_0x1991a3)['then'](function(_0x1523d4){_0x630e57(null,_0x1523d4?_0x1523d4[_0xc202('0x12')]:![]);})[_0xc202('0x13')](function(_0xbf3618){_0x630e57(_0xbf3618);});};AGIVertices[_0xc202('0xf')][_0xc202('0x14')]=function(_0x2c8128,_0x53600c){this[_0xc202('0xd')][_0xc202('0x15')](_0x2c8128)['then'](function(_0x4f0d94){_0x53600c(null,_0x4f0d94?_0x4f0d94['name']:![]);})[_0xc202('0x13')](function(_0x4a333c){_0x53600c(_0x4a333c);});};AGIVertices[_0xc202('0xf')]['getSquareProject']=function(_0x19af73,_0x1d580c){this[_0xc202('0xd')][_0xc202('0x16')](_0x19af73)[_0xc202('0x17')](function(_0x2419c5){_0x1d580c(null,_0x2419c5?_0x2419c5[_0xc202('0x12')]:![]);})['catch'](function(_0x16ec7c){_0x1d580c(_0x16ec7c);});};AGIVertices[_0xc202('0xf')][_0xc202('0x18')]=function(_0x5b2487,_0x504d94){this[_0xc202('0xd')][_0xc202('0x19')](_0x5b2487)[_0xc202('0x17')](function(_0x415b03){_0x504d94(null,_0x415b03?_0x415b03[_0xc202('0x1a')]:![]);})['catch'](function(_0x50a32f){_0x504d94(_0x50a32f);});};AGIVertices[_0xc202('0xf')]['getUser']=function(_0x3058d3,_0x372b31){this['rpc']['getUserById'](_0x3058d3)[_0xc202('0x17')](function(_0x582678){_0x372b31(null,_0x582678?_0x582678[_0xc202('0x12')]:![]);})[_0xc202('0x13')](function(_0x27f4cb){_0x372b31(_0x27f4cb);});};AGIVertices[_0xc202('0xf')][_0xc202('0x1b')]=function(_0x497a08,_0x59f84d){this[_0xc202('0xd')][_0xc202('0x1c')](_0x497a08)[_0xc202('0x17')](function(_0x4ff3e3){_0x59f84d(null,_0x4ff3e3?_0x4ff3e3[_0xc202('0x12')]:![]);})[_0xc202('0x13')](function(_0x541efc){_0x59f84d(_0x541efc);});};AGIVertices['prototype'][_0xc202('0x1d')]=function(_0x2f8011,_0xd88a43){var _0x6b291c=this;this[_0xc202('0xd')]['getSoundById'](_0x2f8011)[_0xc202('0x17')](function(_0x32f56c){_0xd88a43(null,_0x32f56c?_0x6b291c['getSoundPath'](_0x32f56c['save_name']):![]);})[_0xc202('0x13')](function(_0x278ef5){_0xd88a43(_0x278ef5);});};AGIVertices[_0xc202('0xf')][_0xc202('0x1e')]=function(_0x5c5423,_0x1f09cf){this[_0xc202('0xd')][_0xc202('0x1f')](_0x5c5423)['then'](function(_0x77f95a){_0x1f09cf(null,_0x77f95a?_0x77f95a:![]);})[_0xc202('0x13')](function(_0xf1fe4c){_0x1f09cf(_0xf1fe4c);});};AGIVertices[_0xc202('0xf')][_0xc202('0x20')]=function(_0x196394,_0x319945,_0x358b35){this[_0xc202('0xe')][_0xc202('0x20')](_0x196394,_0x319945)[_0xc202('0x17')](function(){_0x358b35(null);})[_0xc202('0x13')](function(_0x50c547){_0x358b35(_0x50c547);});};AGIVertices[_0xc202('0xf')][_0xc202('0x21')]=function(_0x12e11a,_0x5a59a4){this[_0xc202('0xd')]['getIntervalById'](_0x12e11a)[_0xc202('0x17')](function(_0x40a32a){if(_0x40a32a){if(_0x40a32a[_0xc202('0x22')]){_0x5a59a4(null,[_0x40a32a[_0xc202('0x23')]]);}else{_0x5a59a4(null,_[_0xc202('0x24')](_0x40a32a[_0xc202('0x25')],'interval'));}}else{_0x5a59a4(null,![]);}})[_0xc202('0x13')](function(_0x5087e3){_0x5a59a4(_0x5087e3);});};AGIVertices[_0xc202('0xf')]['getSoundPath']=function(_0x244489){return util[_0xc202('0x26')](_0xc202('0x27'),FILES_PATH,_0x244489);};AGIVertices['prototype'][_0xc202('0x28')]=function(_0x44ce00,_0x327278,_0x444a8d){odbc[_0xc202('0x29')](_0x44ce00,function(_0x2afa4e){if(_0x2afa4e){logger['error'](_0xc202('0x2a'),_0x2afa4e);_0x444a8d(_0x2afa4e);}else{logger[_0xc202('0x2b')](_0xc202('0x2c'));odbc['query'](_0x327278,function(_0x41e42b,_0x1741b7){if(_0x41e42b){logger[_0xc202('0x2b')](_0xc202('0x2d'),_0x327278);_0x444a8d(_0x41e42b);}else{logger['info']('Query\x20executed\x20correctly\x20%s',_0x327278);odbc[_0xc202('0x2e')](function(_0x4caf1b){if(_0x4caf1b){logger[_0xc202('0x2f')](_0xc202('0x30'),_0x4caf1b);}_0x444a8d(null,_0x1741b7);});}});}});};AGIVertices[_0xc202('0xf')][_0xc202('0x31')]=function(_0x9dbdb,_0x126c62){this['rpc'][_0xc202('0x32')](_0x9dbdb)[_0xc202('0x17')](function(_0x3dc7c6){_0x126c62(null,_0x3dc7c6?_0x3dc7c6:![]);})[_0xc202('0x13')](function(_0x1d8a06){_0x126c62(_0x1d8a06);});};AGIVertices['prototype'][_0xc202('0x33')]=function(_0x40830d,_0x3afcbf){this[_0xc202('0xd')][_0xc202('0x33')](_0x40830d)['then'](function(_0x25d75f){_0x3afcbf(null,_0x25d75f);})['catch'](function(_0x477378){_0x3afcbf(_0x477378);});};AGIVertices['prototype'][_0xc202('0x34')]=function(_0x4393f3,_0x138a43,_0xaefd1a){this['rpc'][_0xc202('0x34')]({'uniqueid':this[_0xc202('0xc')][_0xc202('0x35')],'node':_0x4393f3[_0xc202('0x36')],'application':_0x4393f3[_0xc202('0x37')],'data':_0x138a43||null,'project_name':this[_0xc202('0xc')][_0xc202('0x38')],'callerid':this[_0xc202('0xc')][_0xc202('0x39')]})[_0xc202('0x17')](function(_0x263c95){if(_0xaefd1a){_0xaefd1a(null,_0x263c95);}})[_0xc202('0x13')](function(_0x157c2e){if(_0xaefd1a){_0xaefd1a(_0x157c2e);}});};AGIVertices[_0xc202('0xf')][_0xc202('0x3a')]=function(_0x461e2b,_0x19ba25,_0x2ab47f,_0x9f8ab3){this[_0xc202('0xd')]['createSquareRecording']({'uniqueid':this[_0xc202('0xc')][_0xc202('0x35')],'callerid':this[_0xc202('0xc')]['callerid'],'calleridname':this['channel']['calleridname'],'context':this[_0xc202('0xc')][_0xc202('0x3b')],'extension':this[_0xc202('0xc')][_0xc202('0x3c')],'priority':this[_0xc202('0xc')][_0xc202('0x3d')],'accountcode':this[_0xc202('0xc')][_0xc202('0x3e')],'dnid':this[_0xc202('0xc')][_0xc202('0x3f')],'projectName':this[_0xc202('0xc')][_0xc202('0x38')],'saveName':_0x19ba25,'filename':_0x461e2b[_0xc202('0x40')]||_0x19ba25,'savePath':_0x2ab47f})['then'](function(_0x33e70c){_0x9f8ab3(null,_0x33e70c);})[_0xc202('0x13')](function(_0x57855e){_0x9f8ab3(_0x57855e);});};AGIVertices[_0xc202('0xf')][_0xc202('0x41')]=function(_0x2864b6,_0x28f89f,_0x40f858,_0x5f5a19,_0x2250a6){this['rpc'][_0xc202('0x41')]({'uniqueid':this['channel'][_0xc202('0x35')],'body':_0x2864b6,'direction':_0x28f89f,'providerName':_0x40f858,'providerResponse':_0x5f5a19})[_0xc202('0x17')](function(_0x59cdec){if(_0x2250a6){_0x2250a6(null,_0x59cdec);}})[_0xc202('0x13')](function(_0x239cd){if(_0x2250a6){_0x2250a6(_0x239cd);}});};AGIVertices['prototype']['createCmContact']=function(_0x584b46,_0x2f063b){this['rpc'][_0xc202('0x42')]({'firstName':_[_0xc202('0x43')](_0x584b46[_0xc202('0x12')])||_[_0xc202('0x44')](_0x584b46[_0xc202('0x12')])?_0xc202('0x45')+Math[_0xc202('0x46')]():_0x584b46[_0xc202('0x12')],'lastName':_[_0xc202('0x43')](_0x584b46[_0xc202('0x47')])||_[_0xc202('0x44')](_0x584b46[_0xc202('0x47')])?null:_0x584b46[_0xc202('0x47')],'phone':_0x584b46['phone'],'ListId':_0x584b46[_0xc202('0x48')],'scheduledat':_0x584b46['scheduledAt'],'callbackUniqueid':this['channel'][_0xc202('0x35')],'tags':_0xc202('0x49'),'description':_0xc202('0x4a')+_0x584b46['scheduledAt'][_0xc202('0x4b')](),'priority':_0x584b46['callback_priority']})[_0xc202('0x17')](function(_0x19fd03){_0x2f063b(null,_0x19fd03);})['catch'](function(_0x2af59e){_0x2f063b(_0x2af59e);});};AGIVertices[_0xc202('0xf')]['getPause']=function(_0x2e1c26,_0x499e75){this[_0xc202('0xd')][_0xc202('0x4c')](_0x2e1c26)[_0xc202('0x17')](function(_0x1a06c5){_0x499e75(null,_0x1a06c5?_0x1a06c5[_0xc202('0x12')]:![]);})[_0xc202('0x13')](function(_0x15aa63){_0x499e75(_0x15aa63);});};AGIVertices['prototype'][_0xc202('0x4d')]=function(_0x3beb0a,_0x4e2e04,_0x2b3238){var _0x4860cf={'role':_0xc202('0x4e')};_0x4860cf[_0x3beb0a]=this['channel'][_0xc202('0x39')];this['rpc'][_0xc202('0x4d')](_0x4860cf,_0x4e2e04,this['channel']['uniqueid'])[_0xc202('0x17')](function(_0x1dc674){_0x2b3238(null,_[_0xc202('0x44')](_0x1dc674)?![]:!![]);})[_0xc202('0x13')](function(_0x2136c6){logger[_0xc202('0x2f')](_0x2136c6);_0x2b3238(null,![]);});};AGIVertices[_0xc202('0xf')][_0xc202('0x4f')]=function(_0x409845,_0x135797){var _0x4d9271={'role':_0xc202('0x4e')};_0x4d9271[_0x409845]=this[_0xc202('0xc')]['callerid'];this[_0xc202('0xd')][_0xc202('0x4f')](_0x4d9271)[_0xc202('0x17')](function(_0x3da9cc){_0x135797(null,_[_0xc202('0x44')](_0x3da9cc)?![]:!![]);})[_0xc202('0x13')](function(_0x18da36){logger[_0xc202('0x2f')](_0x18da36);_0x135797(null,![]);});};AGIVertices['prototype'][_0xc202('0x50')]=function(_0xde8b39,_0xb80bd){var _0x3095d2={'role':_0xc202('0x4e')};_0x3095d2[_0xde8b39]=this['channel'][_0xc202('0x39')];this[_0xc202('0xd')][_0xc202('0x50')](_0x3095d2)['then'](function(_0x7f638c){_0xb80bd(null,_['isNil'](_0x7f638c)?![]:!![]);})['catch'](function(_0x529f70){logger[_0xc202('0x2f')](_0x529f70);_0xb80bd(null,![]);});};AGIVertices[_0xc202('0xf')][_0xc202('0x51')]=function(_0xe05654,_0x5accab){var _0x33b027={'role':'agent'};_0x33b027[_0xe05654]=this[_0xc202('0xc')][_0xc202('0x39')];var _0x5bb7f8=_0xe05654!=_0xc202('0x52')?util[_0xc202('0x26')](_0xc202('0x53'),'LOCAL',this['channel']['callerid']):undefined;this[_0xc202('0xd')][_0xc202('0x51')](_0x33b027,_0x5bb7f8)['then'](function(_0x44d834){_0x5accab(null,_[_0xc202('0x44')](_0x44d834)?![]:!![]);})['catch'](function(_0x41011b){logger['error'](_0x41011b);_0x5accab(null,![]);});};AGIVertices[_0xc202('0xf')][_0xc202('0x54')]=function(_0x3ec443,_0x436c8e){sh[_0xc202('0x55')](_['trim'](_0x3ec443),function(_0x57a07f,_0x18ba97){var _0xb37022=_0x18ba97[_0xc202('0x56')](/(\r\n|\n|\r)/gm,'');_0x436c8e(null,_0xb37022);});};AGIVertices[_0xc202('0xf')][_0xc202('0x57')]=function(_0x5306a2,_0x4bb9ae){scripts[_0xc202('0x57')](_0x5306a2[_0xc202('0x58')],_0x5306a2[_0xc202('0x59')]||_0xc202('0x5a'),_0x5306a2[_0xc202('0x5a')],_0x5306a2[_0xc202('0x5b')]||'en-US',_0x5306a2['ssmlGender']||_0xc202('0x5c'),_0x5306a2[_0xc202('0x5d')]||_0xc202('0x5e'))['then'](function(_0x305a71){_0x4bb9ae(null,_0x305a71);})[_0xc202('0x13')](function(_0x4e8e14){_0x4bb9ae(_0x4e8e14);});};AGIVertices[_0xc202('0xf')][_0xc202('0x5f')]=function(_0x52e4b3,_0x2810a7){scripts[_0xc202('0x5f')](_0x52e4b3[_0xc202('0x5a')],_0x52e4b3[_0xc202('0x60')]||'en',0x1)[_0xc202('0x17')](function(_0x4fe933){_0x2810a7(null,_0x4fe933);})[_0xc202('0x13')](function(_0x5206f7){_0x2810a7(_0x5206f7);});};AGIVertices[_0xc202('0xf')][_0xc202('0x61')]=function(_0x585984,_0x2d149a){var _0x5b8a32={'uri':_0x585984[_0xc202('0x62')],'method':_0x585984[_0xc202('0x63')],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x585984[_0xc202('0x64')])===_0xc202('0x65')&&parseInt(_0x585984['timeout'])>=0x1?parseInt(_0x585984[_0xc202('0x64')])*0x3e8:0x5*0x3e8};if(_[_0xc202('0x66')]([_0xc202('0x67'),_0xc202('0x68')],_0x5b8a32[_0xc202('0x63')][_0xc202('0x69')]())){try{_0x5b8a32['body']=_0x585984[_0xc202('0x6a')]?JSON[_0xc202('0x6b')](_0x585984['rawBody']):{};}catch(_0x1f7734){logger[_0xc202('0x2f')]('An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function',_0x1f7734);}}try{_0x5b8a32['headers']=_0x585984['rawHeaders']?JSON[_0xc202('0x6b')](_0x585984[_0xc202('0x9')]):{};}catch(_0x29278d){logger['error'](_0xc202('0x6c'),_0x29278d);}if(_0x585984[_0xc202('0x6d')]){try{var _0x570e36=require(_0x585984[_0xc202('0x6d')])[_0xc202('0x6e')](this,_0x5b8a32);_0x5b8a32['uri']=Mustache[_0xc202('0x6f')](_0x585984[_0xc202('0x62')],_0x570e36,{},['$$','$$']);if(_0x5b8a32[_0xc202('0x70')]){_0x5b8a32[_0xc202('0x70')]=JSON[_0xc202('0x6b')](Mustache[_0xc202('0x6f')](JSON[_0xc202('0x71')](_0x5b8a32[_0xc202('0x70')]),_0x570e36,{},['$$','$$']));}if(_0x5b8a32[_0xc202('0x72')]){_0x5b8a32[_0xc202('0x72')]=JSON[_0xc202('0x6b')](Mustache['render'](JSON[_0xc202('0x71')](_0x5b8a32[_0xc202('0x72')]),_0x570e36,{},['$$','$$']));}}catch(_0x48a098){logger[_0xc202('0x2f')](_0xc202('0x73'),_0x48a098);}}rp(_0x5b8a32)[_0xc202('0x17')](function(_0x2cf53b){var _0x3021fe={'statusCode':_0x2cf53b['statusCode']||0xc8,'statusMessage':_0x2cf53b[_0xc202('0x74')]||'OK','headers':_0x2cf53b['headers']||{},'body':_0x2cf53b[_0xc202('0x72')]||{}};_0x2d149a(null,_0x3021fe);})[_0xc202('0x13')](function(_0xc4a2df){var _0x541c76={'statusCode':_0xc4a2df['statusCode']||0x1f4,'statusMessage':_0xc4a2df[_0xc202('0x75')]||_0xc202('0x76'),'headers':_0xc4a2df[_0xc202('0x77')][_0xc202('0x70')]||{},'body':_0xc4a2df[_0xc202('0x77')][_0xc202('0x72')]||{}};_0x2d149a(null,_0x541c76);});};AGIVertices[_0xc202('0xf')][_0xc202('0x78')]=function(_0x80109,_0x1bf8b8){scripts[_0xc202('0x78')](this['channel']['uniqueid'],_0x80109[_0xc202('0x79')],_0x80109[_0xc202('0x5a')],_0x80109[_0xc202('0x7a')]||'en')[_0xc202('0x17')](function(_0x5e6e13){_0x1bf8b8(null,_0x5e6e13);})[_0xc202('0x13')](function(_0x48e6d2){_0x1bf8b8(_0x48e6d2);});};AGIVertices['prototype'][_0xc202('0x7b')]=function(_0x151976,_0x53e43a){scripts['googleDialogflowV2'](this['channel'][_0xc202('0x35')],_0x151976[_0xc202('0x7c')],_0x151976['client_email'],_0x151976[_0xc202('0x7d')],_0x151976[_0xc202('0x5a')],_0x151976[_0xc202('0x7e')]||'en')[_0xc202('0x17')](function(_0x49586b){_0x53e43a(null,_0x49586b);})[_0xc202('0x13')](function(_0x34136c){_0x53e43a(_0x34136c);});};AGIVertices[_0xc202('0xf')][_0xc202('0x7f')]=function(_0x57eb77,_0x2576e6){scripts['sestekNDA'](this['channel'],_0x57eb77)[_0xc202('0x17')](function(_0x2cfad2){_0x2576e6(null,_0x2cfad2);})[_0xc202('0x13')](function(_0x2215e4){_0x2576e6(_0x2215e4);});};AGIVertices[_0xc202('0xf')]['ispeechTTS']=function(_0x445835,_0x2d4335){scripts[_0xc202('0x80')](_0x445835['key'],_0x445835[_0xc202('0x5a')],_0x445835[_0xc202('0x81')]||_0xc202('0x82'),_0x445835['speed'])[_0xc202('0x17')](function(_0xf0b2a6){_0x2d4335(null,_0xf0b2a6);})[_0xc202('0x13')](function(_0x27fdb4){_0x2d4335(_0x27fdb4);});};AGIVertices['prototype'][_0xc202('0x83')]=function(_0x2febbe,_0x2ea4a4,_0x1ff46e){scripts['ispeechASR'](_0x2ea4a4,_0x2febbe[_0xc202('0x79')],_0x2febbe['ispeech_asr_language']||_0xc202('0x82'),this[_0xc202('0x84')](_0x2febbe[_0xc202('0x85')])?_0x2febbe['model']:undefined)[_0xc202('0x17')](function(_0xc3e1f6){_0x1ff46e(null,_0xc3e1f6);})[_0xc202('0x13')](function(_0x1f3700){_0x1ff46e(_0x1f3700);});};AGIVertices[_0xc202('0xf')][_0xc202('0x86')]=function(_0x252fd1,_0x53b135){scripts[_0xc202('0x86')](_0x252fd1[_0xc202('0x87')],_0x252fd1['aws_secret_access_key'],_0x252fd1[_0xc202('0x88')],_0x252fd1[_0xc202('0x89')]||_0xc202('0x8a'),_0x252fd1['text'],_0x252fd1[_0xc202('0x8b')]||_0xc202('0x5a'))['then'](function(_0x4a54be){_0x53b135(null,_0x4a54be);})[_0xc202('0x13')](function(_0xf3eda3){_0x53b135(_0xf3eda3);});};AGIVertices[_0xc202('0xf')][_0xc202('0x8c')]=function(_0xf2094a,_0x5d6e3a){scripts[_0xc202('0x8c')](this[_0xc202('0xc')][_0xc202('0x35')],_0xf2094a[_0xc202('0x87')],_0xf2094a[_0xc202('0x8d')],_0xf2094a[_0xc202('0x8e')],_0xf2094a['text'],_0xf2094a['aws_bot_name'])['then'](function(_0x3d7589){_0x5d6e3a(null,_0x3d7589);})[_0xc202('0x13')](function(_0x3c0488){_0x5d6e3a(_0x3c0488);});};AGIVertices[_0xc202('0xf')]['googleASR']=function(_0x4d49f1,_0x256ba7,_0x2fedab){scripts[_0xc202('0x8f')](_0x256ba7,_0x4d49f1[_0xc202('0x79')],_0x4d49f1[_0xc202('0x90')]||_0xc202('0x82'))[_0xc202('0x17')](function(_0x1633dc){_0x2fedab(null,_0x1633dc);})[_0xc202('0x13')](function(_0x449951){_0x2fedab(_0x449951);});};AGIVertices[_0xc202('0xf')][_0xc202('0x91')]=function(_0x3da638,_0x362376,_0x1f6d34){scripts[_0xc202('0x91')](_0x362376,_0x3da638[_0xc202('0x92')],_0x3da638[_0xc202('0x93')],_0x3da638[_0xc202('0x94')])[_0xc202('0x17')](function(_0x49b1ff){_0x1f6d34(null,_0x49b1ff);})[_0xc202('0x13')](function(_0x5e2627){_0x1f6d34(_0x5e2627);});};AGIVertices['prototype'][_0xc202('0x95')]=function(_0x5c22e9){var _0x50b3a6=_[_0xc202('0x66')](verticesWithRetry,_0x5c22e9[_0xc202('0x37')])?_0x5c22e9:_[_0xc202('0x96')](_0x5c22e9);for(var _0x3bbbde in _0x50b3a6){if(_0x50b3a6['hasOwnProperty'](_0x3bbbde)){if(_0x50b3a6[_0x3bbbde]&&_[_0xc202('0x97')](_0x50b3a6[_0x3bbbde])){if(_[_0xc202('0x66')](recursiveMapAttributes,_0x3bbbde)){_0x50b3a6[_0x3bbbde]=this[_0xc202('0x98')](_0x50b3a6[_0x3bbbde]);}else{_0x50b3a6[_0x3bbbde]=this[_0xc202('0x99')](_0x50b3a6[_0x3bbbde]);}}}}return _0x50b3a6;};AGIVertices[_0xc202('0xf')]['recursiveNodeIndex']=function(_0x232839){for(var _0x59bb81 in _0x232839){if(_0x232839[_0xc202('0x9a')](_0x59bb81)){if(_[_0xc202('0x9b')](_0x232839[_0x59bb81])){this[_0xc202('0x9c')](_0x232839[_0x59bb81]);}else if(_['isArray'](_0x232839[_0x59bb81])){for(var _0x4cf0fe=0x0;_0x4cf0fe<_0x232839[_0x59bb81][_0xc202('0x9d')];_0x4cf0fe++){this[_0xc202('0x9c')](_0x232839[_0x59bb81][_0x4cf0fe]);}}else if(_[_0xc202('0x97')](_0x232839[_0x59bb81])){_0x232839[_0x59bb81]=this[_0xc202('0x99')](_0x232839[_0x59bb81]);}}}};AGIVertices['prototype'][_0xc202('0x9e')]=function(_0x23e3f0,_0x593018){for(var _0x42996b in _0x23e3f0){if(_0x23e3f0[_0xc202('0x9a')](_0x42996b)){if(_[_0xc202('0x9b')](_0x23e3f0[_0x42996b])){if(!_[_0xc202('0x43')](_0x23e3f0[_0x42996b])){this[_0xc202('0x9e')](_0x23e3f0[_0x42996b],util[_0xc202('0x26')](_0xc202('0x9f'),_0x593018,_0x42996b));}}else if(_['isArray'](_0x23e3f0[_0x42996b])){for(var _0x3f388f=0x0;_0x3f388f<_0x23e3f0[_0x42996b][_0xc202('0x9d')];_0x3f388f++){this[_0xc202('0x9e')](_0x23e3f0[_0x42996b][_0x3f388f],util[_0xc202('0x26')](_0xc202('0x9f'),_0x593018,_0x42996b+'['+_0x3f388f+']'));}}else{if(!_[_0xc202('0x44')](_0x23e3f0[_0x42996b])){this['channel'][_0xc202('0xa0')](util['format']('%s.%s',_0x593018,_0x42996b),_0x23e3f0[_0x42996b]);}}}}};AGIVertices[_0xc202('0xf')]['replaceObjectAllVariables']=function(_0x41fc1b){try{var _0x11a5b9=JSON[_0xc202('0x6b')](_0x41fc1b);this[_0xc202('0x9c')](_0x11a5b9);return JSON[_0xc202('0x71')](_0x11a5b9);}catch(_0x17c92f){return this[_0xc202('0x99')](_0x41fc1b);}};AGIVertices[_0xc202('0xf')][_0xc202('0x99')]=function(_0x2a316d){var _0x1821f4=_0x2a316d['split']('{');for(var _0x75d217=0x1;_0x75d217<_0x1821f4[_0xc202('0x9d')];_0x75d217+=0x1){var _0x1aa90a=_0x1821f4[_0x75d217][_0xc202('0xa1')]('}');if(_0x1aa90a['length']>0x1){_0x2a316d=_0x2a316d[_0xc202('0xa2')]('{'+_0x1aa90a[0x0]+'}',this[_0xc202('0xc')]['getVariable'](_0x1aa90a[0x0])[_0xc202('0xa3')]||_0x1aa90a[0x0]);}}if(_0x1821f4[_0xc202('0x9d')]===0x1){return _0x2a316d[_0xc202('0x4b')]();}return this['replaceAllVariables'](_0x2a316d);};AGIVertices[_0xc202('0xf')][_0xc202('0xa4')]=function(_0x376430,_0x4a96b2){var _0x21b73b=this[_0xc202('0xc')]['getVariable'](_0x376430);if(_0x21b73b[_0xc202('0xa5')]===-0x1){return _0x21b73b;}logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0xa6'),_0x4a96b2,_0x21b73b[_0xc202('0xa3')]));return this[_0xc202('0xc')][_0xc202('0xa0')](_0x4a96b2,_0x21b73b['extra']);};AGIVertices[_0xc202('0xf')][_0xc202('0x84')]=function(_0xe9e152){return _0xe9e152&&_0xe9e152!=='0'&&_0xe9e152!=='-1'&&_0xe9e152!=='';};AGIVertices['prototype'][_0xc202('0xa7')]=function(_0x23c6e2){this[_0xc202('0x34')][_0xc202('0x6e')](this,_0x23c6e2,'-');_0x23c6e2['retry']=_0x23c6e2['maxRetry'];return{'code':0xc8,'result':'-'};};AGIVertices['prototype'][_0xc202('0xa8')]=function(_0xa3293c){logger[_0xc202('0x2b')](util['format']('Enter\x20in\x20MRCPSynth\x20(%s)\x20block',_0xa3293c['label']));if(!this['isConfigured'](_0xa3293c[_0xc202('0x5a')])){return this[_0xc202('0xc')]['noop']('no\x20text\x20configured');}var _0x368594='\x22'+_0xa3293c[_0xc202('0x5a')]+'\x22';if(this[_0xc202('0x84')](_0xa3293c[_0xc202('0x77')])){_0x368594+=','+_0xa3293c[_0xc202('0x77')];}var _0xa58f72=this[_0xc202('0xc')]['exec'](_0xc202('0xa9'),_0x368594);if(_0xa58f72[_0xc202('0xa5')]===-0x1){return _0xa58f72;}return this[_0xc202('0xc')]['noop'](util[_0xc202('0x26')](_0xc202('0xaa'),_0x368594));};AGIVertices[_0xc202('0xf')][_0xc202('0xab')]=function(_0x5281d0){logger[_0xc202('0x2b')](util['format'](_0xc202('0xac'),_0x5281d0['label']));if(!this[_0xc202('0x84')](_0x5281d0['grammar'])){return this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0xae'));}var _0xcbbc03=_0x5281d0[_0xc202('0xaf')];if(this['isConfigured'](_0x5281d0[_0xc202('0x77')])){_0xcbbc03+=','+_0x5281d0[_0xc202('0x77')];}var _0x19f464=this['channel'][_0xc202('0x55')](_0xc202('0xb0'),_0xcbbc03);if(_0x19f464[_0xc202('0xa5')]===-0x1){return _0x19f464;}var _0x1a217c=this['getAndSetVariable'](_0xc202('0xb1'),_0xc202('0xb2'));if(_0x1a217c[_0xc202('0xa5')]===-0x1){return _0x1a217c;}var _0x2fe360=this['getAndSetVariable'](_0xc202('0xb3'),'MRCP_RECOG_TRANSCRIPT');if(_0x2fe360[_0xc202('0xa5')]===-0x1){return _0x2fe360;}var _0x2149da=this[_0xc202('0xa4')](_0xc202('0xb4'),_0xc202('0xb5'));if(_0x2149da['result']===-0x1){return _0x2149da;}return this[_0xc202('0xc')][_0xc202('0xad')](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0xcbbc03));};AGIVertices['prototype'][_0xc202('0x6')]=function(_0x4102b7){logger['info'](util['format'](_0xc202('0xb6'),_0x4102b7[_0xc202('0x36')]));return this[_0xc202('0xc')][_0xc202('0x6')]([_0x4102b7[_0xc202('0xb7')],_0x4102b7['args']]);};AGIVertices[_0xc202('0xf')][_0xc202('0xb8')]=function(_0xc2e3de){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0xb9'),_0xc2e3de['label']));if(this[_0xc202('0x84')](_0xc2e3de[_0xc202('0x64')])){logger['info'](util[_0xc202('0x26')](_0xc202('0xba'),_0xc2e3de['timeout']));var _0x335a41=this[_0xc202('0xc')]['wait'](_0xc2e3de['timeout']);if(_0x335a41[_0xc202('0xa5')]===-0x1){return _0x335a41;}}return this[_0xc202('0xc')][_0xc202('0xb8')]();};AGIVertices[_0xc202('0xf')][_0xc202('0x49')]=function(_0xcbe303){logger['info'](util[_0xc202('0x26')]('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0xcbe303['label']));if(!this['isConfigured'](_0xcbe303[_0xc202('0x48')])){return this['channel'][_0xc202('0x2f')](_0xcbe303,'no\x20list\x20selected');}_0xcbe303[_0xc202('0xbb')]=moment();if(this[_0xc202('0x84')](_0xcbe303[_0xc202('0xbc')])){_0xcbe303[_0xc202('0xbb')]=moment()[_0xc202('0xbd')](_0xcbe303[_0xc202('0xbc')],_0xc202('0xbe'));}if(!this[_0xc202('0x84')](_0xcbe303[_0xc202('0xbf')])){_0xcbe303['callback_priority']=0x2;}this[_0xc202('0x42')][_0xc202('0x6e')](this,_0xcbe303);return this[_0xc202('0xc')]['noop'](util['format']('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0xcbe303[_0xc202('0xc0')],_0xcbe303['list_id'],_0xcbe303[_0xc202('0xbb')]));};AGIVertices[_0xc202('0xf')][_0xc202('0xc1')]=function(_0x10b474){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0xc2'),_0x10b474[_0xc202('0x36')]));var _0x30b4de=this[_0xc202('0xc')][_0xc202('0x55')](_0x10b474[_0xc202('0xc3')],_0x10b474[_0xc202('0x77')]);if(_0x30b4de[_0xc202('0xa5')]===-0x1){return _0x30b4de;}return this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0xc4'),_0x10b474[_0xc202('0xc3')],_0x10b474[_0xc202('0x77')]));};AGIVertices[_0xc202('0xf')][_0xc202('0xc5')]=function(_0x678731){logger['info'](util[_0xc202('0x26')](_0xc202('0xc6'),_0x678731[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0x678731[_0xc202('0x5a')])){return this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0xc7'));}var _0x2ee8bc='\x22'+_0x678731[_0xc202('0x5a')]+'\x22';if(this[_0xc202('0x84')](_0x678731[_0xc202('0x77')])){_0x2ee8bc+=','+_0x678731['options'];}var _0xa0e26b=this['channel'][_0xc202('0x55')](_0xc202('0xa9'),_0x2ee8bc);if(_0xa0e26b['result']===-0x1){return _0xa0e26b;}return this[_0xc202('0xc')]['noop'](util['format'](_0xc202('0xaa'),_0x2ee8bc));};AGIVertices[_0xc202('0xf')][_0xc202('0xc8')]=function(_0x273612){logger[_0xc202('0x2b')](util['format'](_0xc202('0xc9'),_0x273612[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0x273612[_0xc202('0x5a')])){return this['channel']['noop'](_0xc202('0xc7'));}var _0x4e6ac1='\x22'+_0x273612[_0xc202('0x5a')]+'\x22';if(this[_0xc202('0x84')](_0x273612[_0xc202('0x77')])){_0x4e6ac1+=','+_0x273612[_0xc202('0x77')];}var _0x5cea72=this[_0xc202('0xc')]['exec'](_0xc202('0xa9'),_0x4e6ac1);if(_0x5cea72[_0xc202('0xa5')]===-0x1){return _0x5cea72;}return this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0xaa'),_0x4e6ac1));};AGIVertices[_0xc202('0xf')][_0xc202('0xca')]=function(_0xf611a8){logger['info'](util[_0xc202('0x26')](_0xc202('0xcb'),_0xf611a8['label']));if(!this[_0xc202('0x84')](_0xf611a8[_0xc202('0xaf')])){return this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0xae'));}var _0x4dd23b=_0xf611a8['grammar'];if(this['isConfigured'](_0xf611a8[_0xc202('0x77')])){_0x4dd23b+=','+_0xf611a8[_0xc202('0x77')];}var _0x2b7562=this['channel']['exec']('MRCPRecog',_0x4dd23b);if(_0x2b7562[_0xc202('0xa5')]===-0x1){return _0x2b7562;}var _0x58a010=this[_0xc202('0xa4')](_0xc202('0xb1'),_0xc202('0xcc'));if(_0x58a010[_0xc202('0xa5')]===-0x1){return _0x58a010;}var _0x5b6f04=this[_0xc202('0xa4')](_0xc202('0xb3'),_0xc202('0xcd'));if(_0x5b6f04['result']===-0x1){return _0x5b6f04;}var _0x2505a1=this[_0xc202('0xa4')](_0xc202('0xb4'),'LUMENVOX_ASR_INSTANCE');if(_0x2505a1[_0xc202('0xa5')]===-0x1){return _0x2505a1;}return this[_0xc202('0xc')]['noop'](util[_0xc202('0x26')]('Executed\x20command\x20MRCPRecog\x20%s',_0x4dd23b));};AGIVertices[_0xc202('0xf')]['sestekasr']=function(_0x239db0){logger[_0xc202('0x2b')](util['format'](_0xc202('0xce'),_0x239db0[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0x239db0['grammar'])){return this['channel'][_0xc202('0xad')](_0xc202('0xae'));}var _0x2f8a82=_0x239db0[_0xc202('0xaf')];if(this['isConfigured'](_0x239db0[_0xc202('0x77')])){_0x2f8a82+=','+_0x239db0['options'];}var _0x3fda23=this[_0xc202('0xc')][_0xc202('0x55')](_0xc202('0xb0'),_0x2f8a82);if(_0x3fda23['result']===-0x1){return _0x3fda23;}var _0x2bc6b6=this[_0xc202('0xa4')]('RECOG_CONFIDENCE()',_0xc202('0xcf'));if(_0x2bc6b6[_0xc202('0xa5')]===-0x1){return _0x2bc6b6;}var _0x19cacf=this[_0xc202('0xa4')](_0xc202('0xb3'),_0xc202('0xd0'));if(_0x19cacf[_0xc202('0xa5')]===-0x1){return _0x19cacf;}var _0x20058f=this[_0xc202('0xa4')](_0xc202('0xb4'),_0xc202('0xd1'));if(_0x20058f[_0xc202('0xa5')]===-0x1){return _0x20058f;}return this['channel'][_0xc202('0xad')](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0x2f8a82));};AGIVertices[_0xc202('0xf')][_0xc202('0xd2')]=function(_0x890ba6){logger[_0xc202('0x2b')](util[_0xc202('0x26')]('Enter\x20in\x20DATABASE\x20(%s)\x20block',_0x890ba6['label']));if(!this[_0xc202('0x84')](_0x890ba6[_0xc202('0xd3')])){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x890ba6,_0xc202('0xd4'));}var _0x18f2de=this['getSquareOdbc']['sync'](this,_0x890ba6[_0xc202('0xd3')]);if(!_0x18f2de){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x890ba6,'no\x20odbc\x20database\x20found');}if(!this['isConfigured'](_0x890ba6[_0xc202('0xd5')])){return this[_0xc202('0xc')]['error'](_0x890ba6,_0xc202('0xd6'));}var _0x371589=_0x890ba6['query']['replace'](/(\r\n|\n|\r)/gm,'\x20');this[_0xc202('0xc')]['noop'](util['format'](_0xc202('0xd7'),_0x371589));var _0x2619ac=this[_0xc202('0x28')][_0xc202('0x6e')](this,_0x18f2de,_0x371589);this['createSquareDetailsReport']['sync'](this,_0x890ba6,_0x371589);if(!this[_0xc202('0x84')](_0x890ba6[_0xc202('0xd8')])){return this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0xd9'));}var _0x59d166=this[_0xc202('0x10')][_0xc202('0x6e')](this,_0x890ba6[_0xc202('0xd8')]);if(!_0x59d166){return this['channel'][_0xc202('0x2f')](_0x890ba6,'no\x20variable\x20found');}var _0xf95d09=this;_0x2619ac[_0xc202('0xda')](function(_0x529069,_0x32184b){Object['keys'](_0x529069)[_0xc202('0xda')](function(_0xf7f4a1){_0xf95d09[_0xc202('0xc')][_0xc202('0xa0')](util['format']('%s[%s][%s]',_0x59d166,_0x32184b,_0xf7f4a1),_0x529069[_0xf7f4a1]);});});this[_0xc202('0xc')]['setVariable'](util[_0xc202('0x26')](_0xc202('0xdb'),_0x59d166),_0x2619ac[_0xc202('0x9d')]);return this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0xdc'),_0x59d166));};AGIVertices[_0xc202('0xf')][_0xc202('0xdd')]=function(_0x23935f){logger[_0xc202('0xde')](util['format'](_0xc202('0xdf'),_0x23935f[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0x23935f['sip_id'])){return this[_0xc202('0xc')]['error'](_0x23935f,'no\x20user\x20selected');}var _0x42b767=this[_0xc202('0xe0')][_0xc202('0x6e')](this,_0x23935f[_0xc202('0xe1')]);if(!_0x42b767){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x23935f,'no\x20user\x20found');}var _0x42789c=this[_0xc202('0xc')][_0xc202('0x55')](_0xc202('0xe2'),[util[_0xc202('0x26')](_0xc202('0xe3'),_0x42b767),_0x23935f[_0xc202('0x64')],_0x23935f[_0xc202('0xe4')],_0x23935f['url']]);if(_0x42789c[_0xc202('0xa5')]===-0x1){return _0x42789c;}return this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0xe5'),_0xc202('0xe2')));};AGIVertices[_0xc202('0xf')][_0xc202('0xe6')]=function(_0x16047c){logger[_0xc202('0x2b')](util['format'](_0xc202('0xe7'),_0x16047c[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0x16047c[_0xc202('0x79')])){return this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0xe8'));}if(!this[_0xc202('0x84')](_0x16047c[_0xc202('0x5a')])){return this[_0xc202('0xc')]['noop'](_0xc202('0xc7'));}this[_0xc202('0xc')][_0xc202('0xe9')]=!![];this[_0xc202('0x34')](_0x16047c);this[_0xc202('0x41')](_0x16047c[_0xc202('0x5a')],'in','','');this['channel']['noop'](util[_0xc202('0x26')](_0xc202('0xea'),_0x16047c[_0xc202('0x5a')]));var _0x462685=this[_0xc202('0x78')][_0xc202('0x6e')](this,_0x16047c);if(_0x462685){for(var _0x619b3e in _0x462685){if(_0x462685[_0xc202('0x9a')](_0x619b3e)){this[_0xc202('0xc')][_0xc202('0xa0')](util[_0xc202('0x26')](_0xc202('0xeb'),_0x619b3e[_0xc202('0x69')]()),_0x462685[_0x619b3e]);}}this[_0xc202('0x41')](_0x462685['speech'],_0xc202('0xec'),_0xc202('0xe6'),'');return this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0xed'),_0x462685[_0xc202('0xee')]));}return this[_0xc202('0xc')][_0xc202('0x2f')](_0x16047c,_0xc202('0xef'));};AGIVertices[_0xc202('0xf')][_0xc202('0xf0')]=function(_0xc03f8b){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0xf1'),_0xc03f8b[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0xc03f8b[_0xc202('0x7c')])){return this['channel'][_0xc202('0xad')](_0xc202('0xf2'));}if(!this[_0xc202('0x84')](_0xc03f8b['client_email'])){return this[_0xc202('0xc')]['noop'](_0xc202('0xf3'));}if(!this['isConfigured'](_0xc03f8b[_0xc202('0x7d')])){return this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0xf4'));}if(!this[_0xc202('0x84')](_0xc03f8b['dialogflowV2_language'])){return this['channel']['noop'](_0xc202('0xf5'));}if(!this['isConfigured'](_0xc03f8b[_0xc202('0x5a')])){return this[_0xc202('0xc')]['noop']('no\x20text\x20configured');}this[_0xc202('0xc')][_0xc202('0xe9')]=!![];this['createSquareDetailsReport'](_0xc03f8b);this['createSquareMessage'](_0xc03f8b[_0xc202('0x5a')],'in','','');this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0xf6'),_0xc03f8b[_0xc202('0x5a')]));var _0x34f743=this[_0xc202('0x7b')][_0xc202('0x6e')](this,_0xc03f8b);if(_0x34f743){for(var _0x57f966 in _0x34f743){if(_0x34f743[_0xc202('0x9a')](_0x57f966)){if(_0x57f966!==_0xc202('0xf7')){this[_0xc202('0xc')][_0xc202('0xa0')](util[_0xc202('0x26')](_0xc202('0xeb'),_0x57f966[_0xc202('0x69')]()),_0x34f743[_0x57f966]);}}}this[_0xc202('0x41')](_0x34f743[_0xc202('0xee')],_0xc202('0xec'),'dialogflowV2',_0x34f743[_0xc202('0xf7')]);return this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')]('DialogflowV2\x20Result\x20%s',_0x34f743['speech']));}return this['channel'][_0xc202('0x2f')](_0xc03f8b,_0xc202('0xf8'));};AGIVertices['prototype'][_0xc202('0xf9')]=function(_0x1fd98b){logger[_0xc202('0x2b')](util['format']('Enter\x20in\x20SESTEKNDA\x20(%s)\x20block',_0x1fd98b[_0xc202('0x36')]));if(!this['isConfigured'](_0x1fd98b['ndauth_url'])){return this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0xfa'));}if(!this[_0xc202('0x84')](_0x1fd98b[_0xc202('0xfb')])){return this[_0xc202('0xc')][_0xc202('0xad')]('no\x20username\x20configured');}if(!this[_0xc202('0x84')](_0x1fd98b[_0xc202('0xfc')])){return this[_0xc202('0xc')]['noop'](_0xc202('0xfd'));}if(!this['isConfigured'](_0x1fd98b['ndassistant_url'])){return this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0xc7'));}this[_0xc202('0xc')][_0xc202('0xe9')]=!![];this[_0xc202('0x34')](_0x1fd98b);this['createSquareMessage'](_0x1fd98b[_0xc202('0x5a')],'in','','');this[_0xc202('0xc')][_0xc202('0xad')](util['format'](_0xc202('0xfe'),_0x1fd98b['text']));var _0x2401ae=this[_0xc202('0x7f')][_0xc202('0x6e')](this,_0x1fd98b);if(_0x2401ae){for(var _0xed8eae in _0x2401ae){if(_0x2401ae[_0xc202('0x9a')](_0xed8eae)){this[_0xc202('0xc')][_0xc202('0xa0')](util[_0xc202('0x26')](_0xc202('0xff'),_0xed8eae[_0xc202('0x69')]()),_0x2401ae[_0xed8eae]);}}this[_0xc202('0x41')](_0x2401ae['speech'],_0xc202('0xec'),'sesteknda','');if(_0x2401ae[_0xc202('0x100')]){this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')]('Sestek\x20NDA\x20%s\x20file\x20created',_0x2401ae[_0xc202('0x100')]));var _0x4c3e9a=this[_0xc202('0xc')][_0xc202('0x101')](_0x2401ae[_0xc202('0x100')]);try{fs['unlink'](_0x2401ae[_0xc202('0x100')]+_0xc202('0x102'));}catch(_0x4a1b1a){logger['error'](_0x4a1b1a);}return _0x4c3e9a;}else{return this[_0xc202('0xc')][_0xc202('0xad')](util['format']('SestekNDA\x20Result\x20%s',_0x2401ae[_0xc202('0xee')]));}}return this[_0xc202('0xc')][_0xc202('0x2f')](_0x1fd98b,_0xc202('0x103'));};AGIVertices['prototype'][_0xc202('0x104')]=function(_0x2f5fd7){logger['info'](util['format'](_0xc202('0x105'),_0x2f5fd7[_0xc202('0x36')]));return this['channel']['noop']('end');};AGIVertices[_0xc202('0xf')][_0xc202('0x106')]=function(_0x55325b){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x107'),_0x55325b[_0xc202('0x36')]));var _0x36d2ea='';if(_0x55325b[_0xc202('0x108')]){if(!this[_0xc202('0x84')](_0x55325b[_0xc202('0x108')])){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x55325b,_0xc202('0x109'));}else{var _0x143ae9=parseInt(_0x55325b[_0xc202('0x108')],0xa);if(isNaN(_0x143ae9)){_0x36d2ea=_0x55325b[_0xc202('0x108')];}else{_0x36d2ea=this['getTrunk'][_0xc202('0x6e')](this,_0x55325b[_0xc202('0x108')]);if(!_0x36d2ea){return this['channel'][_0xc202('0x2f')](_0x55325b,_0xc202('0x10a'));}}}}else if(_0x55325b['trunk_name']){_0x36d2ea=_0x55325b[_0xc202('0x10b')];}else{return this['channel'][_0xc202('0x2f')](_0x55325b,_0xc202('0x109'));}var _0x27eff4=this[_0xc202('0xc')][_0xc202('0x55')](_0xc202('0xe2'),[util[_0xc202('0x26')](_0xc202('0x10c'),_0x36d2ea,_0x55325b[_0xc202('0xc0')]),_0x55325b[_0xc202('0x64')],_0x55325b[_0xc202('0xe4')],_0x55325b[_0xc202('0x62')]]);if(_0x27eff4[_0xc202('0xa5')]===-0x1){return _0x27eff4;}return this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')]('Executed\x20command\x20%s',_0xc202('0xe2')));};AGIVertices[_0xc202('0xf')][_0xc202('0x10d')]=function(_0x5926bc){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x10e'),_0x5926bc[_0xc202('0x36')]));return this['channel'][_0xc202('0xad')]('finally');};AGIVertices[_0xc202('0xf')][_0xc202('0x10f')]=function(_0x34d347){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x110'),_0x34d347[_0xc202('0x36')]));if(_0x34d347[_0xc202('0x111')]===0x0){return this[_0xc202('0xa7')](_0x34d347);}_0x34d347['retry']-=0x1;if(!this['isConfigured'](_0x34d347[_0xc202('0x112')])){return this[_0xc202('0xc')]['error'](_0x34d347,_0xc202('0x113'));}var _0x586244=this['getSound'][_0xc202('0x6e')](this,_0x34d347[_0xc202('0x112')]);if(!_0x586244){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x34d347,_0xc202('0x114'));}if(!this['isConfigured'](_0x34d347[_0xc202('0xd8')])){return this[_0xc202('0xc')]['error'](_0xc202('0xd9'));}var _0x12b1c6=this[_0xc202('0xc')]['getData'](_0x586244,_0x34d347[_0xc202('0x115')],_0x34d347['maxdigit']);var _0x2281ed=_0x12b1c6['result']?_0x12b1c6[_0xc202('0xa5')][_0xc202('0x4b')]():'';logger[_0xc202('0x2b')](_0xc202('0x116'),JSON[_0xc202('0x71')](_0x12b1c6));if(_0x12b1c6[_0xc202('0xa5')]===-0x1){this[_0xc202('0x34')][_0xc202('0x6e')](this,_0x34d347,_0x2281ed);return _0x12b1c6;}else if(_0x12b1c6['extra']===_0xc202('0x64')){_0x12b1c6[_0xc202('0xa5')]=_0x2281ed[_0xc202('0x9d')]>=parseInt(_0x34d347['mindigit'])?'x':'i';}else{_0x12b1c6[_0xc202('0xa5')]=_0x2281ed[_0xc202('0x9d')]>=parseInt(_0x34d347[_0xc202('0x117')])&&_0x2281ed[_0xc202('0x9d')]<=parseInt(_0x34d347[_0xc202('0x118')])?'x':'i';}var _0x6f55ae=this[_0xc202('0x10')]['sync'](this,_0x34d347[_0xc202('0xd8')]);if(!_0x6f55ae){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x34d347,_0xc202('0x119'));}this[_0xc202('0xc')][_0xc202('0xa0')](_0x6f55ae,_0x2281ed);if(this[_0xc202('0x84')](_0x34d347['hiddendigitsnum'])){var _0x30341e=parseInt(_0x34d347['hiddendigitsnum'],0xa);var _0x320c0c=rs[_0xc202('0x11a')]({'charset':'*','length':_0x30341e});var _0x2314bd=_0x2281ed[_0xc202('0x9d')];if(_0x2314bd>0x0){if(_0x2314bd>_0x30341e){this[_0xc202('0x34')][_0xc202('0x6e')](this,_0x34d347,_0x34d347[_0xc202('0x11b')]==='first'?_0x320c0c+_0x2281ed[_0xc202('0x11c')](_0x30341e):_0x2281ed[_0xc202('0x11c')](0x0,_0x2314bd-_0x30341e)+_0x320c0c);}else{this['createSquareDetailsReport'][_0xc202('0x6e')](this,_0x34d347,rs[_0xc202('0x11a')]({'charset':'*','length':_0x2314bd}));}}else{this[_0xc202('0x34')]['sync'](this,_0x34d347,'');}}else{this[_0xc202('0x34')][_0xc202('0x6e')](this,_0x34d347,_0x2281ed);}return _0x12b1c6;};AGIVertices[_0xc202('0xf')]['getsecretdigits']=function(_0x107dfd){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x11d'),_0x107dfd[_0xc202('0x36')]));return this[_0xc202('0x10f')](_0x107dfd);};AGIVertices['prototype'][_0xc202('0x11e')]=function(_0x390e13){logger[_0xc202('0x2b')](util['format'](_0xc202('0x11f'),_0x390e13[_0xc202('0x36')]));this[_0xc202('0x34')][_0xc202('0x6e')](this,_0x390e13,_0x390e13[_0xc202('0x120')]);return this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x121'),_0x390e13[_0xc202('0x120')]));};AGIVertices[_0xc202('0xf')][_0xc202('0x122')]=function(_0x10cb76){logger[_0xc202('0x2b')](util['format'](_0xc202('0x123'),_0x10cb76[_0xc202('0x36')]));if(!this['isConfigured'](_0x10cb76[_0xc202('0x87')])||!this['isConfigured'](_0x10cb76[_0xc202('0x8d')])){return this[_0xc202('0xc')][_0xc202('0xad')]('no\x20valid\x20credentials\x20configured');}if(!this[_0xc202('0x84')](_0x10cb76[_0xc202('0x5a')])){return this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0xc7'));}this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x124'),_0x10cb76[_0xc202('0x5a')]));var _0x21bb38=this[_0xc202('0x86')]['sync'](this,_0x10cb76);if(_0x21bb38){this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x125'),_0x21bb38));var _0x4fa995=this['channel'][_0xc202('0x101')](_0x21bb38);try{fs[_0xc202('0x126')](_0x21bb38+'.wav');}catch(_0x1cc966){logger[_0xc202('0x2f')](_0x1cc966);}return _0x4fa995;}return this['channel']['error'](_0x10cb76,_0xc202('0x127'));};AGIVertices['prototype'][_0xc202('0x128')]=function(_0x17fadb){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x129'),_0x17fadb[_0xc202('0x36')]));if(!this['isConfigured'](_0x17fadb[_0xc202('0x87')])||!this['isConfigured'](_0x17fadb[_0xc202('0x8d')])){return this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0x12a'));}if(!this[_0xc202('0x84')](_0x17fadb[_0xc202('0x12b')])){return this['channel'][_0xc202('0xad')](_0xc202('0x12c'));}if(!this['isConfigured'](_0x17fadb[_0xc202('0x5a')])){return this[_0xc202('0xc')][_0xc202('0xad')]('no\x20text\x20configured');}this['channel'][_0xc202('0xe9')]=!![];this[_0xc202('0x34')](_0x17fadb);this[_0xc202('0x41')](_0x17fadb[_0xc202('0x5a')],'in','','');this[_0xc202('0xc')]['noop'](util['format'](_0xc202('0x12d'),_0x17fadb[_0xc202('0x5a')]));var _0x2aeb83=this[_0xc202('0x8c')][_0xc202('0x6e')](this,_0x17fadb);if(_0x2aeb83){for(var _0x5d435e in _0x2aeb83){if(_0x2aeb83['hasOwnProperty'](_0x5d435e)&&_[_0xc202('0x97')](_0x2aeb83[_0x5d435e])){this['channel'][_0xc202('0xa0')](util[_0xc202('0x26')]('AWS_LEX_%s',_0x5d435e[_0xc202('0x69')]()),_0x2aeb83[_0x5d435e]);}}if(_[_0xc202('0x44')](_0x2aeb83[_0xc202('0x75')])){return this[_0xc202('0xc')]['noop'](_0xc202('0x12e'));}else{this[_0xc202('0x41')](_0x2aeb83['message'],_0xc202('0xec'),_0xc202('0x12f'),'');return this['channel'][_0xc202('0xad')](util['format']('Amazon\x20Lex\x20Result\x20%s',_0x2aeb83[_0xc202('0x75')]));}}return this['channel']['error'](_0x17fadb,_0xc202('0x130'));};AGIVertices[_0xc202('0xf')][_0xc202('0x131')]=function(_0xf1f3db){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x132'),_0xf1f3db[_0xc202('0x36')],_0xf1f3db[_0xc202('0x64')]));if(!this['isConfigured'](_0xf1f3db['key'])){return this[_0xc202('0xc')][_0xc202('0xad')]('no\x20key\x20configured');}var _0x45da3e=_0xc202('0x133');var _0x21bca1=util[_0xc202('0x26')]('%s/recordings/%s',FILES_PATH,rs[_0xc202('0x11a')](0x4));var _0x1f1930=util[_0xc202('0x26')](_0xc202('0x9f'),_0x21bca1,_0x45da3e);var _0x23cfff=!![];if(_0xf1f3db[_0xc202('0x134')]===_0xc202('0x135')){_0x23cfff=![];}var _0x2ae67=this['channel'][_0xc202('0x136')](_0x21bca1,_0x45da3e,_0xf1f3db[_0xc202('0x137')],_0xf1f3db[_0xc202('0x64')],undefined,_0x23cfff);if(_0x2ae67['result']!==-0x1){this[_0xc202('0xc')]['noop'](util[_0xc202('0x26')](_0xc202('0x138'),_0x1f1930));var _0x153b5f=this[_0xc202('0x8f')][_0xc202('0x6e')](this,_0xf1f3db,_0x1f1930);if(_0x153b5f){for(var _0x19a462 in _0x153b5f){if(_0x153b5f['hasOwnProperty'](_0x19a462)){this[_0xc202('0xc')]['setVariable'](util[_0xc202('0x26')](_0xc202('0x139'),_0x19a462['toUpperCase']()),_0x153b5f[_0x19a462]);}}return this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')]('GoogleASR\x20Result\x20%s',JSON[_0xc202('0x71')](_0x153b5f)));}}return _0x2ae67;};AGIVertices['prototype'][_0xc202('0x13a')]=function(_0x4a1f01){logger[_0xc202('0x2b')](util['format'](_0xc202('0x13b'),_0x4a1f01[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0x4a1f01['appid'])){return this[_0xc202('0xc')]['noop']('no\x20appid\x20configured');}if(!this[_0xc202('0x84')](_0x4a1f01[_0xc202('0x93')])){return this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0x13c'));}var _0x502ab3=_0xc202('0x133');var _0x4ecffc=util['format'](_0xc202('0x13d'),FILES_PATH,rs[_0xc202('0x11a')](0x4));var _0x3c5501=util['format'](_0xc202('0x9f'),_0x4ecffc,_0x502ab3);var _0x2b0a83=!![];if(_0x4a1f01['beep']===_0xc202('0x135')){_0x2b0a83=![];}var _0x34b0c0=this[_0xc202('0xc')][_0xc202('0x136')](_0x4ecffc,_0x502ab3,_0x4a1f01[_0xc202('0x137')],_0x4a1f01[_0xc202('0x64')],undefined,_0x2b0a83);if(_0x34b0c0[_0xc202('0xa5')]!==-0x1){this['channel'][_0xc202('0xad')](util[_0xc202('0x26')]('tilde\x20%s\x20file\x20created',_0x3c5501));var _0x2f8959=this[_0xc202('0x91')][_0xc202('0x6e')](this,_0x4a1f01,_0x3c5501);if(_0x2f8959){for(var _0x3b1ffb in _0x2f8959){if(_0x2f8959[_0xc202('0x9a')](_0x3b1ffb)){this['channel'][_0xc202('0xa0')](util['format']('TILDE_ASR_%s',_0x3b1ffb[_0xc202('0x69')]()),_0x2f8959[_0x3b1ffb]);}}return this[_0xc202('0xc')]['noop'](util[_0xc202('0x26')](_0xc202('0x13e'),JSON[_0xc202('0x71')](_0x2f8959)));}}return _0x34b0c0;};AGIVertices[_0xc202('0xf')][_0xc202('0x13f')]=function(_0x170c56){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x140'),_0x170c56[_0xc202('0x36')]));return this['channel'][_0xc202('0x141')](_0x170c56[_0xc202('0x3b')],_0x170c56[_0xc202('0x3c')],_0x170c56[_0xc202('0x3d')]);};AGIVertices[_0xc202('0xf')][_0xc202('0x142')]=function(_0x5a437e){logger['info'](util['format'](_0xc202('0x143'),_0x5a437e['label']));if(!this['isConfigured'](_0x5a437e[_0xc202('0x144')])){return this[_0xc202('0xc')]['error'](_0x5a437e,'no\x20condition\x20configured');}try{var _0x56a3ab=eval(_0x5a437e[_0xc202('0x144')])?'true':_0xc202('0x145');this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x146'),_0x5a437e[_0xc202('0x144')],_0x56a3ab));return{'code':0xc8,'result':_0x56a3ab};}catch(_0x415998){return{'code':0xc8,'result':'false'};}};AGIVertices[_0xc202('0xf')]['gotoiftime']=function(_0x121b79){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x147'),_0x121b79[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0x121b79['interval_id'])){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x121b79,_0xc202('0x148'));}var _0x1f3e6a=this[_0xc202('0x21')][_0xc202('0x6e')](this,_0x121b79[_0xc202('0x149')]);if(!_0x1f3e6a){return this[_0xc202('0xc')]['error'](_0x121b79,_0xc202('0x14a'));}for(var _0x5e2229=0x0;_0x5e2229<_0x1f3e6a[_0xc202('0x9d')];_0x5e2229+=0x1){var _0x4ecf46=this[_0xc202('0xc')][_0xc202('0x10')](util[_0xc202('0x26')](_0xc202('0x14b'),_0x1f3e6a[_0x5e2229]));if(_0x4ecf46[_0xc202('0xa5')]===-0x1){return _0x4ecf46;}logger['info'](util[_0xc202('0x26')](_0xc202('0x14c'),_0x1f3e6a[_0x5e2229],_0x4ecf46[_0xc202('0xa3')]));if(_0x4ecf46[_0xc202('0xa3')]===_0xc202('0x14d')){logger[_0xc202('0x2b')](util[_0xc202('0x26')]('IFTIME\x20%s\x20%s',_0x1f3e6a[_0x5e2229],'true'));this['channel']['noop'](util[_0xc202('0x26')](_0xc202('0x14c'),_0x1f3e6a[_0x5e2229],_0xc202('0x14d')));return{'code':0xc8,'result':_0xc202('0x14d')};}else{logger[_0xc202('0x2b')](util[_0xc202('0x26')]('IFTIME\x20%s\x20%s',_0x1f3e6a[_0x5e2229],_0xc202('0x145')));this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')]('IFTIME\x20%s\x20%s',_0x1f3e6a[_0x5e2229],_0xc202('0x145')));}}return{'code':0xc8,'result':_0xc202('0x145')};};AGIVertices['prototype'][_0xc202('0x14e')]=function(_0x552768){logger[_0xc202('0x2b')](util['format']('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0x552768[_0xc202('0x36')]));return this['channel']['hangup']();};AGIVertices[_0xc202('0xf')][_0xc202('0x14f')]=function(_0x1d4cb3){logger[_0xc202('0x2b')](util[_0xc202('0x26')]('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0x1d4cb3['label']));if(!this[_0xc202('0x84')](_0x1d4cb3[_0xc202('0x79')])){return this['channel'][_0xc202('0xad')]('no\x20key\x20configured');}var _0x36a917='wav';var _0xffadce=util[_0xc202('0x26')]('%s/recordings/%s',FILES_PATH,rs['generate'](0x4));var _0x7b768b=util[_0xc202('0x26')](_0xc202('0x9f'),_0xffadce,_0x36a917);var _0x2c9668=!![];if(_0x1d4cb3[_0xc202('0x134')]===_0xc202('0x135')){_0x2c9668=![];}var _0x3187ff=this['channel'][_0xc202('0x136')](_0xffadce,_0x36a917,_0x1d4cb3[_0xc202('0x137')],_0x1d4cb3['timeout'],undefined,_0x2c9668);if(_0x3187ff[_0xc202('0xa5')]!==-0x1){this[_0xc202('0xc')][_0xc202('0xad')](util['format'](_0xc202('0x150'),_0x7b768b));var _0x2aeaa6=this[_0xc202('0x83')][_0xc202('0x6e')](this,_0x1d4cb3,_0x7b768b);if(_0x2aeaa6){for(var _0x219902 in _0x2aeaa6){if(_0x2aeaa6['hasOwnProperty'](_0x219902)){this[_0xc202('0xc')]['setVariable'](util[_0xc202('0x26')](_0xc202('0x151'),_0x219902[_0xc202('0x69')]()),_0x2aeaa6[_0x219902]);}}return this['channel']['noop'](util[_0xc202('0x26')](_0xc202('0x152'),JSON[_0xc202('0x71')](_0x2aeaa6)));}}return _0x3187ff;};AGIVertices['prototype']['ispeechtts']=function(_0x1d1b81){logger['info'](util[_0xc202('0x26')]('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x1d1b81[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0x1d1b81[_0xc202('0x79')])){return this[_0xc202('0xc')][_0xc202('0xad')]('no\x20key\x20configured');}if(!this['isConfigured'](_0x1d1b81[_0xc202('0x5a')])){return this['channel'][_0xc202('0xad')]('no\x20text\x20configured');}this['channel'][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x153'),_0x1d1b81[_0xc202('0x5a')]));var _0x4e055a=this[_0xc202('0x80')][_0xc202('0x6e')](this,_0x1d1b81);if(_0x4e055a){this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')]('ispeech\x20%s\x20file\x20created',_0x4e055a));var _0x5e01bf=this[_0xc202('0xc')][_0xc202('0x101')](_0x4e055a,_0x1d1b81[_0xc202('0x137')]);try{fs[_0xc202('0x126')](_0x4e055a+_0xc202('0x102'));}catch(_0x56dd14){logger['error'](_0x56dd14);}return _0x5e01bf;}return this['channel']['error'](_0x1d1b81,_0xc202('0x154'));};AGIVertices[_0xc202('0xf')][_0xc202('0x155')]=function(_0x410e73){logger['info'](util[_0xc202('0x26')](_0xc202('0x156'),_0x410e73[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0x410e73['findBy'])){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x410e73,_0xc202('0x157'));}logger[_0xc202('0x2b')](util['format']('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xc202('0xc')]['callerid'],_0x410e73[_0xc202('0x158')]));var _0x43a2de=this[_0xc202('0x51')][_0xc202('0x6e')](this,_0x410e73['findBy']);if(_0x43a2de){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x159'),this[_0xc202('0xc')][_0xc202('0x39')],_0x410e73['findBy']));this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x159'),this[_0xc202('0xc')][_0xc202('0x39')],_0x410e73[_0xc202('0x158')]));return{'code':0xc8,'result':_0xc202('0x15a')};}else{logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x15b'),this[_0xc202('0xc')][_0xc202('0x39')],_0x410e73[_0xc202('0x158')]));this['channel'][_0xc202('0xad')](util['format'](_0xc202('0x15b'),this[_0xc202('0xc')][_0xc202('0x39')],_0x410e73[_0xc202('0x158')]));return{'code':0xc8,'result':_0xc202('0x15c')};}};AGIVertices[_0xc202('0xf')][_0xc202('0x15d')]=function(_0x54152a){logger['info'](util[_0xc202('0x26')]('Enter\x20in\x20LOGOUT\x20(%s)\x20block',_0x54152a[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0x54152a['findBy'])){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x54152a,_0xc202('0x157'));}logger[_0xc202('0x2b')](util['format'](_0xc202('0x15e'),this[_0xc202('0xc')]['callerid'],_0x54152a['findBy']));var _0x4ea2e1=this[_0xc202('0x50')]['sync'](this,_0x54152a[_0xc202('0x158')]);if(_0x4ea2e1){logger['info'](util[_0xc202('0x26')](_0xc202('0x159'),this[_0xc202('0xc')][_0xc202('0x39')],_0x54152a['findBy']));this['channel'][_0xc202('0xad')](util['format'](_0xc202('0x159'),this[_0xc202('0xc')][_0xc202('0x39')],_0x54152a[_0xc202('0x158')]));return{'code':0xc8,'result':_0xc202('0x15a')};}else{logger['info'](util[_0xc202('0x26')](_0xc202('0x15b'),this[_0xc202('0xc')][_0xc202('0x39')],_0x54152a[_0xc202('0x158')]));this[_0xc202('0xc')][_0xc202('0xad')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0xc202('0x39')],_0x54152a['findBy']));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0xc202('0xf')][_0xc202('0x15f')]=function(_0x5f0263){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x160'),_0x5f0263[_0xc202('0x36')]));if(!this['isConfigured'](_0x5f0263[_0xc202('0x161')])){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x5f0263,_0xc202('0x162'));}this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x163'),_0x5f0263[_0xc202('0x161')]));var _0x5dcf4b=eval(_0x5f0263[_0xc202('0x161')]);if(!this['isConfigured'](_0x5f0263[_0xc202('0xd8')])){return this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0xd9'));}var _0x58524d=this[_0xc202('0x10')][_0xc202('0x6e')](this,_0x5f0263['variable_id']);if(!_0x58524d){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x5f0263,_0xc202('0x119'));}if(_['isArray'](_0x5dcf4b)){var _0x1e08c9=this;_0x5dcf4b[_0xc202('0xda')](function(_0x3a9829,_0x187306){_0x1e08c9[_0xc202('0xc')][_0xc202('0xa0')](util['format'](_0xc202('0x164'),_0x58524d,_0x187306),_0x3a9829);});return this['channel'][_0xc202('0xad')](util[_0xc202('0x26')]('variable\x20%s[key]\x20set',_0x58524d));}else{return this[_0xc202('0xc')][_0xc202('0xa0')](_0x58524d,_0x5dcf4b);}};AGIVertices[_0xc202('0xf')][_0xc202('0xa')]=function(_0x447efc){logger[_0xc202('0x2b')](util[_0xc202('0x26')]('Enter\x20in\x20MENU\x20(%s)\x20block',_0x447efc[_0xc202('0x36')]));if(_0x447efc[_0xc202('0x111')]===0x0){return this[_0xc202('0xa7')](_0x447efc);}_0x447efc[_0xc202('0x111')]-=0x1;if(!this[_0xc202('0x84')](_0x447efc[_0xc202('0x112')])){return this['channel'][_0xc202('0x2f')](_0x447efc,'no\x20file\x20audio\x20selected');}var _0x111386=this['getSound'][_0xc202('0x6e')](this,_0x447efc[_0xc202('0x112')]);if(!_0x111386){return this['channel'][_0xc202('0x2f')](_0x447efc,_0xc202('0x114'));}var _0x50a57c=this['channel'][_0xc202('0x165')](_0x111386,_0x447efc[_0xc202('0x115')],_0x447efc[_0xc202('0x166')]);var _0x462300=_0x50a57c[_0xc202('0xa5')];if(_0x50a57c[_0xc202('0xa5')]===-0x1){this[_0xc202('0x34')][_0xc202('0x6e')](this,_0x447efc,'-1');return _0x50a57c;}else if(_0x50a57c[_0xc202('0xa3')]===_0xc202('0x64')){_0x50a57c[_0xc202('0xa5')]=_0x50a57c[_0xc202('0xa5')][_0xc202('0x9d')]>0x0?_0x50a57c['result']:'t';}else if(_[_0xc202('0x43')](_0x50a57c[_0xc202('0xa5')])){_0x50a57c[_0xc202('0xa5')]='#';_0x462300='#';}if(!this[_0xc202('0x84')](_0x447efc['variable_id'])){this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0xd9'));}else{var _0x45dd27=this[_0xc202('0x10')]['sync'](this,_0x447efc['variable_id']);if(!_0x45dd27){return this['channel']['error'](_0x447efc,'no\x20variable\x20found');}this[_0xc202('0xc')][_0xc202('0xa0')](_0x45dd27,_0x462300);}this[_0xc202('0x34')][_0xc202('0x6e')](this,_0x447efc,_0x462300);return _0x50a57c;};AGIVertices['prototype']['noop']=function(_0x5eaf4d){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x167'),_0x5eaf4d['label']));return this['channel'][_0xc202('0xad')](_0x5eaf4d['output']||_0x5eaf4d[_0xc202('0x36')]);};AGIVertices[_0xc202('0xf')][_0xc202('0x168')]=function(_0x391be6){logger[_0xc202('0x2b')](util[_0xc202('0x26')]('Enter\x20in\x20PAUSE\x20(%s)\x20block',_0x391be6['label']));if(!this[_0xc202('0x84')](_0x391be6[_0xc202('0x158')])){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x391be6,_0xc202('0x157'));}logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x15e'),this['channel']['callerid'],_0x391be6[_0xc202('0x158')]));var _0x289d50=this[_0xc202('0x169')][_0xc202('0x6e')](this,_0x391be6[_0xc202('0x16a')]);var _0x1e62bf=this['agentPause'][_0xc202('0x6e')](this,_0x391be6[_0xc202('0x158')],_0x289d50);if(_0x1e62bf){logger[_0xc202('0x2b')](util[_0xc202('0x26')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xc202('0xc')][_0xc202('0x39')],_0x391be6[_0xc202('0x158')]));this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x159'),this[_0xc202('0xc')][_0xc202('0x39')],_0x391be6[_0xc202('0x158')]));return{'code':0xc8,'result':_0xc202('0x15a')};}else{logger[_0xc202('0x2b')](util[_0xc202('0x26')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xc202('0xc')][_0xc202('0x39')],_0x391be6[_0xc202('0x158')]));this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x159'),this[_0xc202('0xc')][_0xc202('0x39')],_0x391be6['findBy']));return{'code':0xc8,'result':'failure'};}};AGIVertices['prototype']['playback']=function(_0x197871){logger[_0xc202('0x2b')](util[_0xc202('0x26')]('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0x197871['label']));if(!this[_0xc202('0x84')](_0x197871[_0xc202('0x112')])){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x197871,_0xc202('0x113'));}var _0x380004=this[_0xc202('0x1d')][_0xc202('0x6e')](this,_0x197871[_0xc202('0x112')]);if(!_0x380004){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x197871,'no\x20file\x20audio\x20found');}var _0x4de228=this['channel'][_0xc202('0x55')]('PLAYBACK',[_0x380004,_0x197871[_0xc202('0xe4')]]);if(_0x4de228[_0xc202('0xa5')]===-0x1){return _0x4de228;}return this[_0xc202('0xc')]['noop'](util[_0xc202('0x26')](_0xc202('0xc4'),_0xc202('0x16b'),_0x380004));};AGIVertices[_0xc202('0xf')]['queue']=function(_0x16bc08){logger['info'](util[_0xc202('0x26')]('Enter\x20in\x20QUEUE\x20(%s)\x20block',_0x16bc08[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0x16bc08['queue_id'])){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x16bc08,_0xc202('0x16c'));}var _0x3d35c8='';var _0x120d03=parseInt(_0x16bc08[_0xc202('0x16d')],0xa);if(isNaN(_0x120d03)){_0x3d35c8=_0x16bc08['queue_id'];}else{_0x3d35c8=this[_0xc202('0x14')][_0xc202('0x6e')](this,_0x16bc08[_0xc202('0x16d')]);if(!_0x3d35c8){return this[_0xc202('0xc')]['error'](_0x16bc08,'no\x20queue\x20found');}}var _0x57dd3b='';if(this[_0xc202('0x84')](_0x16bc08[_0xc202('0x112')])){var _0x1c7f8c=this[_0xc202('0x1d')][_0xc202('0x6e')](this,_0x16bc08[_0xc202('0x112')]);if(_0x1c7f8c){_0x57dd3b=_0x1c7f8c;}}this[_0xc202('0x34')][_0xc202('0x6e')](this,_0x16bc08,_0x3d35c8);if(_0x16bc08['opts'][_0xc202('0x16e')]('x')<0x0){_0x16bc08[_0xc202('0xe4')]+='x';}if(_0x16bc08[_0xc202('0xe4')][_0xc202('0x16e')]('X')<0x0){_0x16bc08['opts']+='X';}this[_0xc202('0xc')][_0xc202('0xa0')](_0xc202('0x16f'),_0x3d35c8?_0x3d35c8[_0xc202('0x170')]():'');var _0x2076e6=this[_0xc202('0xc')][_0xc202('0x55')](_0xc202('0x171'),[_0x3d35c8,_0x16bc08[_0xc202('0xe4')],_0x16bc08[_0xc202('0x62')],_0x57dd3b,_0x16bc08[_0xc202('0x64')],_0x16bc08[_0xc202('0x6')],_0x16bc08[_0xc202('0x172')],_0x16bc08['gosub'],'',_0x16bc08[_0xc202('0x173')]]);if(_0x2076e6[_0xc202('0xa5')]===-0x1){return _0x2076e6;}return this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0xc4'),_0xc202('0x171'),_0x3d35c8));};AGIVertices['prototype'][_0xc202('0x174')]=function(_0x4979f9){logger['info'](util[_0xc202('0x26')]('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x4979f9['label']));var _0x4e0529=_0x4979f9[_0xc202('0x175')]||_0xc202('0x133');var _0x4acebd=util['format'](_0xc202('0x176'),this[_0xc202('0xc')][_0xc202('0x35')],rs[_0xc202('0x11a')](0x5));var _0x4c99f2=util['format'](_0xc202('0x177'),FILES_PATH,_0x4acebd,_0x4e0529);var _0x5bf8b0=util[_0xc202('0x26')](_0xc202('0x13d'),FILES_PATH,_0x4acebd);this[_0xc202('0x3a')][_0xc202('0x6e')](this,_0x4979f9,_0x4acebd,_0x4c99f2);this[_0xc202('0xc')][_0xc202('0xa0')](_0xc202('0x178'),_0x4acebd);logger['info'](_0xc202('0x179'),_0x5bf8b0,_0x4e0529,_0x4979f9[_0xc202('0x17a')],_0x4979f9[_0xc202('0x64')]);return this['channel'][_0xc202('0x136')](_0x5bf8b0,_0x4e0529,_0x4979f9[_0xc202('0x17a')],_0x4979f9[_0xc202('0x64')],undefined,!![]);};AGIVertices[_0xc202('0xf')][_0xc202('0x17b')]=function(_0xbd6a30){logger['info'](util[_0xc202('0x26')](_0xc202('0x17c'),_0xbd6a30['label']));if(!this['isConfigured'](_0xbd6a30[_0xc202('0x62')])){return this[_0xc202('0xc')][_0xc202('0xad')]('no\x20url\x20configured');}var _0xcc8f77=this[_0xc202('0x61')][_0xc202('0x6e')](this,_0xbd6a30);logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x17d'),util['inspect'](_0xcc8f77,{'showHidden':![],'depth':null})));if(!this[_0xc202('0x84')](_0xbd6a30[_0xc202('0xd8')])){return this[_0xc202('0xc')][_0xc202('0xad')]('no\x20variable\x20selected\x20for\x20the\x20response');}var _0x51728c=this[_0xc202('0x10')][_0xc202('0x6e')](this,_0xbd6a30[_0xc202('0xd8')]);if(!_0x51728c){return this[_0xc202('0xc')][_0xc202('0x2f')](_0xbd6a30,'no\x20variable\x20found');}this['channel'][_0xc202('0xa0')](util[_0xc202('0x26')](_0xc202('0x17e'),_0x51728c),_0xcc8f77[_0xc202('0x17f')]?_0xcc8f77[_0xc202('0x17f')]:_0xc202('0x180'));this['channel'][_0xc202('0xa0')](util[_0xc202('0x26')]('%s_STATUS_MESSAGE',_0x51728c),_0xcc8f77['statusMessage']?_0xcc8f77['statusMessage']:'OK');if(_0xcc8f77[_0xc202('0x72')]){try{this[_0xc202('0x9e')](_0xcc8f77[_0xc202('0x72')],_0x51728c);}catch(_0x75fbfb){logger['error'](util[_0xc202('0x26')](_0xc202('0x181'),_0x51728c));}}return this[_0xc202('0xc')][_0xc202('0xad')](util['format'](_0xc202('0xdc'),_0x51728c));};AGIVertices[_0xc202('0xf')][_0xc202('0x182')]=function(_0x13412a){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x183'),_0x13412a[_0xc202('0x36')]));return this[_0xc202('0xc')][_0xc202('0x184')](_0x13412a['digits'][_0xc202('0x56')](/\s+/g,''),_0x13412a['escape_digits']);};AGIVertices[_0xc202('0xf')]['saynumber']=function(_0x1c7542){logger['info'](util[_0xc202('0x26')](_0xc202('0x185'),_0x1c7542[_0xc202('0x36')]));return this[_0xc202('0xc')]['sayNumber'](_0x1c7542[_0xc202('0x65')][_0xc202('0x56')](/\s+/g,''),_0x1c7542[_0xc202('0x17a')]);};AGIVertices[_0xc202('0xf')][_0xc202('0x186')]=function(_0x5283f1){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x187'),_0x5283f1[_0xc202('0x36')]));return this[_0xc202('0xc')][_0xc202('0x188')](_0x5283f1[_0xc202('0x5a')],_0x5283f1[_0xc202('0x17a')]);};AGIVertices[_0xc202('0xf')][_0xc202('0x189')]=function(_0x1078d4){logger[_0xc202('0x2b')](util['format']('Enter\x20in\x20SENDMAIL\x20(%s)\x20block',_0x1078d4['label']));if(!this['isConfigured'](_0x1078d4[_0xc202('0x18a')])){return this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0x18b'));}var _0x2b75f6=this[_0xc202('0x1e')][_0xc202('0x6e')](this,_0x1078d4[_0xc202('0x18a')]);if(!_0x2b75f6||!_0x2b75f6[_0xc202('0x18c')]){return this[_0xc202('0xc')]['error'](_0x1078d4,'no\x20mail\x20account\x20found');}var _0x56c86c={'from':util[_0xc202('0x26')](_0xc202('0x18d'),_0x2b75f6['name'],_0x2b75f6[_0xc202('0x18e')]||_0x2b75f6[_0xc202('0x18c')][_0xc202('0x18f')]),'to':_0x1078d4['to']||'','cc':_0x1078d4['cc']||'','bcc':_0x1078d4['bcc']||'','subject':_0x1078d4[_0xc202('0x190')],'html':_0x1078d4[_0xc202('0x5a')],'text':_0x1078d4[_0xc202('0x5a')]};if(this[_0xc202('0x84')](_0x1078d4[_0xc202('0x191')])){}logger[_0xc202('0xde')](_0xc202('0x192'),JSON[_0xc202('0x71')](_0x56c86c));this[_0xc202('0x34')][_0xc202('0x6e')](this,_0x1078d4,_0x1078d4[_0xc202('0x18a')]);this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x193'),_0x2b75f6[_0xc202('0x12')]));this['sendMailMessage'][_0xc202('0x6e')](this,_0x2b75f6[_0xc202('0x194')],_0x56c86c);return this[_0xc202('0xc')]['noop'](_0xc202('0x195'));};AGIVertices[_0xc202('0xf')][_0xc202('0x196')]=function(_0x454af2){logger['info'](util[_0xc202('0x26')](_0xc202('0x197'),_0x454af2[_0xc202('0x36')]));return this['channel'][_0xc202('0xad')](_0xc202('0x198'));};AGIVertices[_0xc202('0xf')]['sendSMS']=function(_0xfdbafc){logger['info'](util['format'](_0xc202('0x199'),_0xfdbafc[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0xfdbafc[_0xc202('0x19a')])){return this[_0xc202('0xc')]['noop'](_0xc202('0x19b'));}var _0x1d3b3f=this[_0xc202('0x31')][_0xc202('0x6e')](this,_0xfdbafc['sms_account_id']);if(!_0x1d3b3f){return this[_0xc202('0xc')][_0xc202('0x2f')](_0xfdbafc,'no\x20sms\x20account\x20found');}var _0x3f71a3={'body':_0xfdbafc['sms_text'],'phone':_0xfdbafc['to']||'','SmsAccountId':_0x1d3b3f['id']};logger['debug'](_0xc202('0x19c'),JSON[_0xc202('0x71')](_0x3f71a3));this[_0xc202('0x34')][_0xc202('0x6e')](this,_0xfdbafc,_0xfdbafc[_0xc202('0x19a')]);this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x19d'),_0x1d3b3f[_0xc202('0x12')]));this[_0xc202('0x33')][_0xc202('0x6e')](this,_0x3f71a3);return this[_0xc202('0xc')]['noop'](_0xc202('0x19e'));};AGIVertices[_0xc202('0xf')][_0xc202('0x19f')]=function(_0x2cf60a){logger['info'](util[_0xc202('0x26')](_0xc202('0x1a0'),_0x2cf60a[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0x2cf60a[_0xc202('0xd8')])){return this['channel'][_0xc202('0x2f')](_0x2cf60a,_0xc202('0x1a1'));}var _0x47114c=this['getVariable']['sync'](this,_0x2cf60a[_0xc202('0xd8')]);if(!_0x47114c){return this[_0xc202('0xc')][_0xc202('0x2f')](_0x2cf60a,_0xc202('0x119'));}return this[_0xc202('0xc')][_0xc202('0xa0')](_0x47114c,_0x2cf60a[_0xc202('0x1a2')]);};AGIVertices[_0xc202('0xf')][_0xc202('0x1a3')]=function(_0x4be5ec){logger[_0xc202('0x2b')](util['format'](_0xc202('0x1a4'),_0x4be5ec[_0xc202('0x36')]));this[_0xc202('0xc')][_0xc202('0xad')]('START\x20CALLY\x20SQUARE');var _0x24e237=this[_0xc202('0xc')][_0xc202('0x10')](_0xc202('0x1a5'));if(!_[_0xc202('0x43')](_0x24e237[_0xc202('0xa3')])){this[_0xc202('0xc')]['uniqueid']=_0x24e237[_0xc202('0xa3')];}if(_0x4be5ec[_0xc202('0xb8')]===_0xc202('0x1a6')){this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0x1a7'));return this['channel']['answer']();}return this['channel'][_0xc202('0xad')]('Skipped\x20Answer');};AGIVertices['prototype'][_0xc202('0x1a8')]=function(_0x50dd62){logger[_0xc202('0x2b')](util['format'](_0xc202('0x1a9'),_0x50dd62[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0x50dd62[_0xc202('0x1aa')])){return this[_0xc202('0xc')]['error'](_0x50dd62,_0xc202('0x1ab'));}var _0x30f5d4=this[_0xc202('0x1ac')][_0xc202('0x6e')](this,_0x50dd62[_0xc202('0x1aa')]);if(!this[_0xc202('0x84')](_0x30f5d4)){return this['channel']['error'](_0x50dd62,util['format'](_0xc202('0x1ad'),_0x50dd62[_0xc202('0x1aa')]));}if(_0x30f5d4===this[_0xc202('0xc')]['arg_1']){return this['channel'][_0xc202('0x2f')](_0x50dd62,_0xc202('0x1ae'));}this[_0xc202('0x34')][_0xc202('0x6e')](this,_0x50dd62,_0x30f5d4);var _0x1c0496=this[_0xc202('0xc')]['exec']('AGI',util[_0xc202('0x26')](_0xc202('0x1af'),config[_0xc202('0x6')][_0xc202('0x1b0')]||_0xc202('0x1b1'),_0x30f5d4,this['channel'][_0xc202('0x38')]));if(_0x1c0496[_0xc202('0xa5')]===-0x1){return _0x1c0496;}return this[_0xc202('0xc')]['noop'](util[_0xc202('0x26')](_0xc202('0xc4'),'AGI',_0x30f5d4));};AGIVertices[_0xc202('0xf')][_0xc202('0x1b2')]=function(_0x4e6912){logger[_0xc202('0x2b')](util[_0xc202('0x26')]('Enter\x20in\x20SYSTEM\x20(%s)\x20block',_0x4e6912['label']));var _0x437a73=this[_0xc202('0x54')][_0xc202('0x6e')](this,_0x4e6912['command']);this[_0xc202('0x34')][_0xc202('0x6e')](this,_0x4e6912,_0x4e6912['command']);if(this[_0xc202('0x84')](_0x4e6912[_0xc202('0xd8')])){var _0x374a84=this[_0xc202('0x10')]['sync'](this,_0x4e6912[_0xc202('0xd8')]);if(_0x374a84){this['channel'][_0xc202('0xa0')](_0x374a84,_0x437a73);return this[_0xc202('0xc')][_0xc202('0xad')](util['format'](_0xc202('0x1b3'),_0x4e6912[_0xc202('0xb7')],_0x374a84));}}return this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x1b4'),_0x4e6912['command']));};AGIVertices[_0xc202('0xf')][_0xc202('0x1b5')]=function(_0x86cb78){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x1b6'),_0x86cb78[_0xc202('0x36')]));_0x86cb78['text']=_0x86cb78[_0xc202('0x5a')]['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xc202('0x84')](_0x86cb78[_0xc202('0x58')])){return this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0x1b7'));}if(!this['isConfigured'](_0x86cb78['text'])){return this[_0xc202('0xc')]['noop'](_0xc202('0xc7'));}this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x1b8'),_0x86cb78['text']));var _0x3ba813=this[_0xc202('0x57')][_0xc202('0x6e')](this,_0x86cb78);if(_0x3ba813){this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x1b9'),_0x3ba813));var _0x3066f0=this[_0xc202('0xc')][_0xc202('0x101')](_0x3ba813);try{fs['unlink'](_0x3ba813+_0xc202('0x102'));}catch(_0x4125d7){logger[_0xc202('0x2f')](_0x4125d7);}return _0x3066f0;}return this[_0xc202('0xc')][_0xc202('0x2f')](_0x86cb78,_0xc202('0x1ba'));};AGIVertices[_0xc202('0xf')][_0xc202('0x1bb')]=function(_0x3bc32a){logger['info'](util[_0xc202('0x26')](_0xc202('0x1bc'),_0x3bc32a[_0xc202('0x36')]));_0x3bc32a['text']=_0x3bc32a[_0xc202('0x5a')][_0xc202('0x56')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xc202('0x84')](_0x3bc32a['text'])){return this[_0xc202('0xc')][_0xc202('0xad')](_0xc202('0xc7'));}this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x1bd'),_0x3bc32a['text']));var _0x19912d=this['googleTTS'][_0xc202('0x6e')](this,_0x3bc32a);if(_0x19912d){this[_0xc202('0xc')][_0xc202('0xad')](util['format'](_0xc202('0x1be'),_0x19912d));var _0x582e09=this[_0xc202('0xc')][_0xc202('0x101')](_0x19912d);try{fs['unlink'](_0x19912d+_0xc202('0x102'));}catch(_0x367f34){logger[_0xc202('0x2f')](_0x367f34);}return _0x582e09;}return this[_0xc202('0xc')][_0xc202('0x2f')](_0x3bc32a,_0xc202('0x1bf'));};AGIVertices[_0xc202('0xf')][_0xc202('0x1c0')]=function(_0xbdd258){logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x1c1'),_0xbdd258[_0xc202('0x36')]));if(!this['isConfigured'](_0xbdd258[_0xc202('0x158')])){return this['channel']['error'](_0xbdd258,'no\x20find\x20by\x20configured');}logger[_0xc202('0x2b')](util[_0xc202('0x26')](_0xc202('0x15e'),this['channel'][_0xc202('0x39')],_0xbdd258[_0xc202('0x158')]));var _0x4288df=this['agentUnpause'][_0xc202('0x6e')](this,_0xbdd258[_0xc202('0x158')]);if(_0x4288df){logger[_0xc202('0x2b')](util[_0xc202('0x26')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xc202('0xc')][_0xc202('0x39')],_0xbdd258['findBy']));this['channel'][_0xc202('0xad')](util['format'](_0xc202('0x159'),this['channel'][_0xc202('0x39')],_0xbdd258['findBy']));return{'code':0xc8,'result':_0xc202('0x15a')};}else{logger['info'](util[_0xc202('0x26')](_0xc202('0x15b'),this['channel'][_0xc202('0x39')],_0xbdd258['findBy']));this[_0xc202('0xc')][_0xc202('0xad')](util[_0xc202('0x26')](_0xc202('0x15b'),this[_0xc202('0xc')][_0xc202('0x39')],_0xbdd258[_0xc202('0x158')]));return{'code':0xc8,'result':_0xc202('0x15c')};}};AGIVertices['prototype'][_0xc202('0x1c2')]=function(_0x413aa1){logger['info'](util[_0xc202('0x26')]('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x413aa1[_0xc202('0x36')]));var _0x20e41e=this['channel'][_0xc202('0x55')]('VOICEMAIL',[_0x413aa1[_0xc202('0x1c3')],_0x413aa1[_0xc202('0x77')]]);if(_0x20e41e[_0xc202('0xa5')]===-0x1){return _0x20e41e;}return this[_0xc202('0xc')]['noop'](util['format'](_0xc202('0xc4'),_0xc202('0x1c4'),_0x413aa1[_0xc202('0x1c3')]));};AGIVertices[_0xc202('0xf')][_0xc202('0x1c5')]=function(_0x2260ea){logger['info'](util[_0xc202('0x26')](_0xc202('0x1c6'),_0x2260ea[_0xc202('0x36')]));if(!this[_0xc202('0x84')](_0x2260ea[_0xc202('0xd8')])){return this['channel'][_0xc202('0x2f')](_0x2260ea,'no\x20variable\x20selected');}var _0x220824=this[_0xc202('0x10')][_0xc202('0x6e')](this,_0x2260ea[_0xc202('0xd8')]);if(!_0x220824){return this[_0xc202('0xc')]['error'](_0x2260ea,_0xc202('0x119'));}var _0x472a5a=this[_0xc202('0xc')][_0xc202('0x10')](_0x220824);return{'code':0xc8,'result':_0x472a5a[_0xc202('0xa3')]?_0x472a5a[_0xc202('0xa3')]:'-'};};String[_0xc202('0xf')]['replaceAll']=function(_0x116abd,_0x186a39){return this[_0xc202('0xa1')](_0x116abd)[_0xc202('0x1c7')](_0x186a39);};module['exports']=AGIVertices;