1 var _0x97c1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x75\x74\x69\x6C","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x5F\x25\x73","\x6C\x6F\x63\x61\x6C\x73\x74\x61\x74\x69\x6F\x6E\x69\x64","\x66\x6F\x72\x6D\x61\x74","\x69\x64","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x74\x68\x65\x6E","\x64\x65\x73\x74\x72\x6F\x79","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x6C\x65\x74\x65","\x66\x72\x6F\x6D\x2D\x76\x6F\x69\x70\x2D\x70\x72\x6F\x76\x69\x64\x65\x72","\x4E\x6F\x4F\x70","\x49\x6E\x63\x6F\x6D\x69\x6E\x67\x20\x66\x61\x78\x20\x66\x72\x6F\x6D\x20\x24\x7B\x43\x41\x4C\x4C\x45\x52\x49\x44\x28\x6E\x75\x6D\x29\x7D","\x69\x6E\x62\x6F\x75\x6E\x64","\x41\x63\x63\x6F\x75\x6E\x74\x20\x25\x73","\x6E\x61\x6D\x65","\x53\x65\x74","\x43\x44\x52\x28\x74\x79\x70\x65\x29\x3D\x69\x6E\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x41\x6E\x73\x77\x65\x72","","\x57\x61\x69\x74","\x32","\x46\x41\x58\x4F\x50\x54\x28\x65\x63\x6D\x29\x3D\x25\x73","\x65\x63\x6D","\x46\x41\x58\x4F\x50\x54\x28\x68\x65\x61\x64\x65\x72\x69\x6E\x66\x6F\x29\x3D\x25\x73","\x68\x65\x61\x64\x65\x72\x69\x6E\x66\x6F","\x46\x41\x58\x4F\x50\x54\x28\x6C\x6F\x63\x61\x6C\x73\x74\x61\x74\x69\x6F\x6E\x69\x64\x29\x3D\x25\x73","\x46\x41\x58\x4F\x50\x54\x28\x6D\x69\x6E\x72\x61\x74\x65\x29\x3D\x25\x73","\x6D\x69\x6E\x72\x61\x74\x65","\x46\x41\x58\x4F\x50\x54\x28\x6D\x61\x78\x72\x61\x74\x65\x29\x3D\x25\x73","\x6D\x61\x78\x72\x61\x74\x65","\x46\x41\x58\x4F\x50\x54\x28\x6D\x6F\x64\x65\x6D\x29\x3D\x25\x73","\x6D\x6F\x64\x65\x6D","\x46\x41\x58\x4F\x50\x54\x28\x67\x61\x74\x65\x77\x61\x79\x29\x3D\x25\x73","\x67\x61\x74\x65\x77\x61\x79","\x46\x41\x58\x4F\x50\x54\x28\x74\x33\x38\x74\x69\x6D\x65\x6F\x75\x74\x29\x3D\x25\x73","\x74\x33\x38\x74\x69\x6D\x65\x6F\x75\x74","\x46\x41\x58\x4F\x50\x54\x28\x66\x61\x78\x64\x65\x74\x65\x63\x74\x29\x3D\x25\x73","\x66\x61\x78\x64\x65\x74\x65\x63\x74","\x52\x65\x63\x65\x69\x76\x65\x46\x61\x78","\x2F\x76\x61\x72\x2F\x73\x70\x6F\x6F\x6C\x2F\x61\x73\x74\x65\x72\x69\x73\x6B\x2F\x66\x61\x78\x2F\x66\x61\x78\x2D\x24\x7B\x53\x54\x52\x46\x54\x49\x4D\x45\x28\x24\x7B\x45\x50\x4F\x43\x48\x7D\x2C\x2C\x25\x59\x25\x6D\x25\x64\x2D\x25\x48\x25\x4D\x25\x53\x29\x7D\x2E\x74\x69\x66","\x48\x61\x6E\x67\x75\x70","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x97c1[0];var util=require(_0x97c1[1]);var VoiceExtension=require(_0x97c1[3])[_0x97c1[2]];var FaxAccountModel=require(_0x97c1[3])[_0x97c1[4]];var Promise=require(_0x97c1[5]);function FaxAccount(){FaxAccountModel[_0x97c1[10]](function(_0x5478x6){var _0x5478x7=util[_0x97c1[8]](_0x97c1[6],_0x5478x6[_0x97c1[7]]);var _0x5478x8=_0x5478x6[_0x97c1[9]];return createVoiceExtension(_0x5478x6,_0x5478x7,_0x5478x8)});FaxAccountModel[_0x97c1[13]](function(_0x5478x6,_0x5478x9){var _0x5478x7=util[_0x97c1[8]](_0x97c1[6],_0x5478x6[_0x97c1[7]]);var _0x5478x8=_0x5478x6[_0x97c1[9]];return VoiceExtension[_0x97c1[12]]({where:{FaxAccountId:_0x5478x6[_0x97c1[9]]}})[_0x97c1[11]](function(){return createVoiceExtension(_0x5478x6,_0x5478x7,_0x5478x8)})});FaxAccountModel[_0x97c1[14]](function(_0x5478x6,_0x5478x9){return deleteVoiceExtensions(_0x5478x6)})}function createVoiceExtension(_0x5478x6,_0x5478x7,_0x5478x8){var _0x5478xb=[{context:_0x97c1[15],exten:_0x5478x7,priority:1,app:_0x97c1[16],appdata:_0x97c1[17],type:_0x97c1[18],FaxAccountId:_0x5478x8},{context:_0x97c1[15],exten:_0x5478x7,priority:2,app:_0x97c1[16],appdata:util[_0x97c1[8]](_0x97c1[19],_0x5478x6[_0x97c1[20]]),type:_0x97c1[18],FaxAccountId:_0x5478x8},{context:_0x97c1[15],exten:_0x5478x7,priority:3,app:_0x97c1[21],appdata:_0x97c1[22],type:_0x97c1[18],FaxAccountId:_0x5478x8},{context:_0x97c1[15],exten:_0x5478x7,priority:4,app:_0x97c1[23],appdata:_0x97c1[24],type:_0x97c1[18],FaxAccountId:_0x5478x8},{context:_0x97c1[15],exten:_0x5478x7,priority:5,app:_0x97c1[25],appdata:_0x97c1[26],type:_0x97c1[18],FaxAccountId:_0x5478x8},{context:_0x97c1[15],exten:_0x5478x7,priority:6,app:_0x97c1[21],appdata:util[_0x97c1[8]](_0x97c1[27],_0x5478x6[_0x97c1[28]]),type:_0x97c1[18],FaxAccountId:_0x5478x8},{context:_0x97c1[15],exten:_0x5478x7,priority:7,app:_0x97c1[21],appdata:util[_0x97c1[8]](_0x97c1[29],_0x5478x6[_0x97c1[30]]),type:_0x97c1[18],FaxAccountId:_0x5478x8},{context:_0x97c1[15],exten:_0x5478x7,priority:8,app:_0x97c1[21],appdata:util[_0x97c1[8]](_0x97c1[31],_0x5478x6[_0x97c1[7]]),type:_0x97c1[18],FaxAccountId:_0x5478x8},{context:_0x97c1[15],exten:_0x5478x7,priority:9,app:_0x97c1[21],appdata:util[_0x97c1[8]](_0x97c1[32],_0x5478x6[_0x97c1[33]]),type:_0x97c1[18],FaxAccountId:_0x5478x8},{context:_0x97c1[15],exten:_0x5478x7,priority:10,app:_0x97c1[21],appdata:util[_0x97c1[8]](_0x97c1[34],_0x5478x6[_0x97c1[35]]),type:_0x97c1[18],FaxAccountId:_0x5478x8},{context:_0x97c1[15],exten:_0x5478x7,priority:11,app:_0x97c1[21],appdata:util[_0x97c1[8]](_0x97c1[36],_0x5478x6[_0x97c1[37]]),type:_0x97c1[18],FaxAccountId:_0x5478x8},{context:_0x97c1[15],exten:_0x5478x7,priority:12,app:_0x97c1[21],appdata:util[_0x97c1[8]](_0x97c1[38],_0x5478x6[_0x97c1[39]]),type:_0x97c1[18],FaxAccountId:_0x5478x8},{context:_0x97c1[15],exten:_0x5478x7,priority:13,app:_0x97c1[21],appdata:util[_0x97c1[8]](_0x97c1[40],_0x5478x6[_0x97c1[41]]),type:_0x97c1[18],FaxAccountId:_0x5478x8},{context:_0x97c1[15],exten:_0x5478x7,priority:14,app:_0x97c1[21],appdata:util[_0x97c1[8]](_0x97c1[42],_0x5478x6[_0x97c1[43]]),type:_0x97c1[18],FaxAccountId:_0x5478x8},{context:_0x97c1[15],exten:_0x5478x7,priority:15,app:_0x97c1[44],appdata:_0x97c1[45],type:_0x97c1[18],FaxAccountId:_0x5478x8},{context:_0x97c1[15],exten:_0x5478x7,priority:16,app:_0x97c1[46],appdata:_0x97c1[24],type:_0x97c1[18],FaxAccountId:_0x5478x8}];return VoiceExtension[_0x97c1[47]](_0x5478xb)}function deleteVoiceExtensions(_0x5478x6){return VoiceExtension[_0x97c1[12]]({where:{FaxAccountId:_0x5478x6[_0x97c1[9]]}})}module[_0x97c1[48]]=FaxAccount