Built motion from commit 55324429e.|1.0.25
[motion.git] / server / config / integrations / index.js
index b7e5e11..6a56eb0 100644 (file)
@@ -1 +1 @@
-var _0xc7d8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x61\x72\x69\x61\x62\x6C\x65","\x2E\x2F\x7A\x65\x6E\x64\x65\x73\x6B","\x2E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65","\x2E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D","\x2E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B","\x2E\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x54\x72\x69\x67\x67\x65\x72\x20\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x69\x6E\x66\x6F","\x6D\x61\x6E\x61\x67\x65\x45\x76\x65\x6E\x74","\x61\x63\x74\x69\x6F\x6E","\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x68\x61\x6E\x64\x6C\x65\x45\x76\x65\x6E\x74","\x64\x61\x74\x61\x31","\x64\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x7A\x65\x6E\x64\x65\x73\x6B","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65","\x73\x75\x67\x61\x72\x63\x72\x6D","\x66\x72\x65\x73\x68\x64\x65\x73\x6B","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x3A\x20","\x65\x72\x72\x6F\x72","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x25\x73\x20\x6E\x6F\x74\x20\x61\x63\x74\x69\x76\x65\x20\x69\x6E\x20\x79\x6F\x75\x72\x20\x73\x65\x72\x76\x65\x72\x21","\x66\x6F\x72\x6D\x61\x74","\x77\x61\x72\x6E","\x73\x74\x61\x74\x65","\x6D\x61\x70","\x69\x6E\x64\x65\x78\x4F\x66","\x65\x78\x70\x6F\x72\x74\x73"];_0xc7d8[0];var _=require(_0xc7d8[1]);var util=require(_0xc7d8[2]);var logger=require(_0xc7d8[4])(_0xc7d8[3]);var IntegrationModel=require(_0xc7d8[6])[_0xc7d8[5]];var Variable=require(_0xc7d8[6])[_0xc7d8[7]];var Zendesk=require(_0xc7d8[8]);var Salesforce=require(_0xc7d8[9]);var Sugarcrm=require(_0xc7d8[10]);var Freshdesk=require(_0xc7d8[11]);var Motionbar=require(_0xc7d8[12]);function Integration(){logger[_0xc7d8[14]](_0xc7d8[13]);var _0xbae6xc= new Zendesk();var _0xbae6xd= new Salesforce();var _0xbae6xe= new Sugarcrm();var _0xbae6xf= new Freshdesk();var _0xbae6x10= new Motionbar();this[_0xc7d8[15]]= function(_0xbae6x11,_0xbae6x12,_0xbae6x13,_0xbae6x14,_0xbae6x15,_0xbae6x16,_0xbae6x17){if(_0xbae6x11[_0xc7d8[16]]=== _0xc7d8[17]){_0xbae6x10[_0xc7d8[18]](_0xbae6x11,_0xbae6x13,_0xbae6x12,_0xbae6x15,_0xbae6x16)}else {if(integrationIsActive(_0xbae6x11[_0xc7d8[19]],_0xbae6x17)){switch(_0xbae6x11[_0xc7d8[19]]){case _0xc7d8[22]:_0xbae6xc[_0xc7d8[18]](_0xbae6x11[_0xc7d8[20]],_0xbae6x11[_0xc7d8[21]],_0xbae6x13,_0xbae6x14,_0xbae6x12,_0xbae6x15,_0xbae6x16);break;case _0xc7d8[23]:_0xbae6xd[_0xc7d8[18]](_0xbae6x11[_0xc7d8[20]],_0xbae6x11[_0xc7d8[21]],_0xbae6x13,_0xbae6x14,_0xbae6x12,_0xbae6x15,_0xbae6x16);break;case _0xc7d8[24]:_0xbae6xe[_0xc7d8[18]](_0xbae6x11[_0xc7d8[20]],_0xbae6x11[_0xc7d8[21]],_0xbae6x13,_0xbae6x14,_0xbae6x12,_0xbae6x15,_0xbae6x16);break;case _0xc7d8[25]:_0xbae6xf[_0xc7d8[18]](_0xbae6x11[_0xc7d8[20]],_0xbae6x11[_0xc7d8[21]],_0xbae6x13,_0xbae6x14,_0xbae6x12,_0xbae6x15,_0xbae6x16);break;default:logger[_0xc7d8[27]](_0xc7d8[26],_0xbae6x11[_0xc7d8[19]])}}else {logger[_0xc7d8[30]](util[_0xc7d8[29]](_0xc7d8[28],_0xbae6x11[_0xc7d8[19]]))}}}}function integrationIsActive(_0xbae6x19,_0xbae6x1a){var _0xbae6x1b=_[_0xc7d8[32]](_0xbae6x1a,_0xc7d8[31]);if(_[_0xc7d8[33]](_0xbae6x1b,_0xbae6x19)>= 0){return true};return false}module[_0xc7d8[34]]= Integration
\ No newline at end of file
+var _0x5356=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x61\x72\x69\x61\x62\x6C\x65","\x2E\x2F\x7A\x65\x6E\x64\x65\x73\x6B","\x2E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65","\x2E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D","\x2E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B","\x2E\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x54\x72\x69\x67\x67\x65\x72\x20\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x69\x6E\x66\x6F","\x6D\x61\x6E\x61\x67\x65\x45\x76\x65\x6E\x74","\x61\x63\x74\x69\x6F\x6E","\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x68\x61\x6E\x64\x6C\x65\x45\x76\x65\x6E\x74","\x64\x61\x74\x61\x31","\x64\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x7A\x65\x6E\x64\x65\x73\x6B","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65","\x73\x75\x67\x61\x72\x63\x72\x6D","\x66\x72\x65\x73\x68\x64\x65\x73\x6B","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x3A\x20","\x65\x72\x72\x6F\x72","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x25\x73\x20\x6E\x6F\x74\x20\x61\x63\x74\x69\x76\x65\x20\x69\x6E\x20\x79\x6F\x75\x72\x20\x73\x65\x72\x76\x65\x72\x21","\x66\x6F\x72\x6D\x61\x74","\x77\x61\x72\x6E","\x73\x74\x61\x74\x65","\x6D\x61\x70","\x69\x6E\x64\x65\x78\x4F\x66","\x65\x78\x70\x6F\x72\x74\x73"];_0x5356[0];var _=require(_0x5356[1]);var util=require(_0x5356[2]);var logger=require(_0x5356[4])(_0x5356[3]);var IntegrationModel=require(_0x5356[6])[_0x5356[5]];var Variable=require(_0x5356[6])[_0x5356[7]];var Zendesk=require(_0x5356[8]);var Salesforce=require(_0x5356[9]);var Sugarcrm=require(_0x5356[10]);var Freshdesk=require(_0x5356[11]);var Motionbar=require(_0x5356[12]);function Integration(){logger[_0x5356[14]](_0x5356[13]);var _0xc4a5xc= new Zendesk();var _0xc4a5xd= new Salesforce();var _0xc4a5xe= new Sugarcrm();var _0xc4a5xf= new Freshdesk();var _0xc4a5x10= new Motionbar();this[_0x5356[15]]= function(_0xc4a5x11,_0xc4a5x12,_0xc4a5x13,_0xc4a5x14,_0xc4a5x15,_0xc4a5x16,_0xc4a5x17){if(_0xc4a5x11[_0x5356[16]]=== _0x5356[17]){_0xc4a5x10[_0x5356[18]](_0xc4a5x11,_0xc4a5x13,_0xc4a5x12,_0xc4a5x15,_0xc4a5x16)}else {if(integrationIsActive(_0xc4a5x11[_0x5356[19]],_0xc4a5x17)){switch(_0xc4a5x11[_0x5356[19]]){case _0x5356[22]:_0xc4a5xc[_0x5356[18]](_0xc4a5x11[_0x5356[20]],_0xc4a5x11[_0x5356[21]],_0xc4a5x13,_0xc4a5x14,_0xc4a5x12,_0xc4a5x15,_0xc4a5x16);break;case _0x5356[23]:_0xc4a5xd[_0x5356[18]](_0xc4a5x11[_0x5356[20]],_0xc4a5x11[_0x5356[21]],_0xc4a5x13,_0xc4a5x14,_0xc4a5x12,_0xc4a5x15,_0xc4a5x16);break;case _0x5356[24]:_0xc4a5xe[_0x5356[18]](_0xc4a5x11[_0x5356[20]],_0xc4a5x11[_0x5356[21]],_0xc4a5x13,_0xc4a5x14,_0xc4a5x12,_0xc4a5x15,_0xc4a5x16);break;case _0x5356[25]:_0xc4a5xf[_0x5356[18]](_0xc4a5x11[_0x5356[20]],_0xc4a5x11[_0x5356[21]],_0xc4a5x13,_0xc4a5x14,_0xc4a5x12,_0xc4a5x15,_0xc4a5x16);break;default:logger[_0x5356[27]](_0x5356[26],_0xc4a5x11[_0x5356[19]])}}else {logger[_0x5356[30]](util[_0x5356[29]](_0x5356[28],_0xc4a5x11[_0x5356[19]]))}}}}function integrationIsActive(_0xc4a5x19,_0xc4a5x1a){var _0xc4a5x1b=_[_0x5356[32]](_0xc4a5x1a,_0x5356[31]);if(_[_0x5356[33]](_0xc4a5x1b,_0xc4a5x19)>= 0){return true};return false}module[_0x5356[34]]= Integration
\ No newline at end of file