Built motion from commit eeb7beacd.|1.0.21
[motion.git] / server / config / integrations / index.js
index 8b913fb..cbc9923 100644 (file)
@@ -1 +1 @@
-var _0xcd49=["\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"];_0xcd49[0];var _=require(_0xcd49[1]);var util=require(_0xcd49[2]);var logger=require(_0xcd49[4])(_0xcd49[3]);var IntegrationModel=require(_0xcd49[6])[_0xcd49[5]];var Variable=require(_0xcd49[6])[_0xcd49[7]];var Zendesk=require(_0xcd49[8]);var Salesforce=require(_0xcd49[9]);var Sugarcrm=require(_0xcd49[10]);var Freshdesk=require(_0xcd49[11]);var Motionbar=require(_0xcd49[12]);function Integration(){logger[_0xcd49[14]](_0xcd49[13]);var _0x772fxc= new Zendesk();var _0x772fxd= new Salesforce();var _0x772fxe= new Sugarcrm();var _0x772fxf= new Freshdesk();var _0x772fx10= new Motionbar();this[_0xcd49[15]]= function(_0x772fx11,_0x772fx12,_0x772fx13,_0x772fx14,_0x772fx15,_0x772fx16,_0x772fx17){if(_0x772fx11[_0xcd49[16]]=== _0xcd49[17]){_0x772fx10[_0xcd49[18]](_0x772fx11,_0x772fx13,_0x772fx12,_0x772fx15,_0x772fx16)}else {if(integrationIsActive(_0x772fx11[_0xcd49[19]],_0x772fx17)){switch(_0x772fx11[_0xcd49[19]]){case _0xcd49[22]:_0x772fxc[_0xcd49[18]](_0x772fx11[_0xcd49[20]],_0x772fx11[_0xcd49[21]],_0x772fx13,_0x772fx14,_0x772fx12,_0x772fx15);break;case _0xcd49[23]:_0x772fxd[_0xcd49[18]](_0x772fx11[_0xcd49[20]],_0x772fx11[_0xcd49[21]],_0x772fx13,_0x772fx14,_0x772fx12,_0x772fx15,_0x772fx16);break;case _0xcd49[24]:_0x772fxe[_0xcd49[18]](_0x772fx11[_0xcd49[20]],_0x772fx11[_0xcd49[21]],_0x772fx13,_0x772fx14,_0x772fx12,_0x772fx15,_0x772fx16);break;case _0xcd49[25]:_0x772fxf[_0xcd49[18]](_0x772fx11[_0xcd49[20]],_0x772fx11[_0xcd49[21]],_0x772fx13,_0x772fx14,_0x772fx12,_0x772fx15,_0x772fx16);break;default:logger[_0xcd49[27]](_0xcd49[26],_0x772fx11[_0xcd49[19]])}}else {logger[_0xcd49[30]](util[_0xcd49[29]](_0xcd49[28],_0x772fx11[_0xcd49[19]]))}}}}function integrationIsActive(_0x772fx19,_0x772fx1a){var _0x772fx1b=_[_0xcd49[32]](_0x772fx1a,_0xcd49[31]);if(_[_0xcd49[33]](_0x772fx1b,_0x772fx19)>= 0){return true};return false}module[_0xcd49[34]]= Integration
\ No newline at end of file
+var _0x6a03=["\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"];_0x6a03[0];var _=require(_0x6a03[1]);var util=require(_0x6a03[2]);var logger=require(_0x6a03[4])(_0x6a03[3]);var IntegrationModel=require(_0x6a03[6])[_0x6a03[5]];var Variable=require(_0x6a03[6])[_0x6a03[7]];var Zendesk=require(_0x6a03[8]);var Salesforce=require(_0x6a03[9]);var Sugarcrm=require(_0x6a03[10]);var Freshdesk=require(_0x6a03[11]);var Motionbar=require(_0x6a03[12]);function Integration(){logger[_0x6a03[14]](_0x6a03[13]);var _0x4a7cxc= new Zendesk();var _0x4a7cxd= new Salesforce();var _0x4a7cxe= new Sugarcrm();var _0x4a7cxf= new Freshdesk();var _0x4a7cx10= new Motionbar();this[_0x6a03[15]]= function(_0x4a7cx11,_0x4a7cx12,_0x4a7cx13,_0x4a7cx14,_0x4a7cx15,_0x4a7cx16,_0x4a7cx17){if(_0x4a7cx11[_0x6a03[16]]=== _0x6a03[17]){_0x4a7cx10[_0x6a03[18]](_0x4a7cx11,_0x4a7cx13,_0x4a7cx12,_0x4a7cx15,_0x4a7cx16)}else {if(integrationIsActive(_0x4a7cx11[_0x6a03[19]],_0x4a7cx17)){switch(_0x4a7cx11[_0x6a03[19]]){case _0x6a03[22]:_0x4a7cxc[_0x6a03[18]](_0x4a7cx11[_0x6a03[20]],_0x4a7cx11[_0x6a03[21]],_0x4a7cx13,_0x4a7cx14,_0x4a7cx12,_0x4a7cx15);break;case _0x6a03[23]:_0x4a7cxd[_0x6a03[18]](_0x4a7cx11[_0x6a03[20]],_0x4a7cx11[_0x6a03[21]],_0x4a7cx13,_0x4a7cx14,_0x4a7cx12,_0x4a7cx15,_0x4a7cx16);break;case _0x6a03[24]:_0x4a7cxe[_0x6a03[18]](_0x4a7cx11[_0x6a03[20]],_0x4a7cx11[_0x6a03[21]],_0x4a7cx13,_0x4a7cx14,_0x4a7cx12,_0x4a7cx15,_0x4a7cx16);break;case _0x6a03[25]:_0x4a7cxf[_0x6a03[18]](_0x4a7cx11[_0x6a03[20]],_0x4a7cx11[_0x6a03[21]],_0x4a7cx13,_0x4a7cx14,_0x4a7cx12,_0x4a7cx15,_0x4a7cx16);break;default:logger[_0x6a03[27]](_0x6a03[26],_0x4a7cx11[_0x6a03[19]])}}else {logger[_0x6a03[30]](util[_0x6a03[29]](_0x6a03[28],_0x4a7cx11[_0x6a03[19]]))}}}}function integrationIsActive(_0x4a7cx19,_0x4a7cx1a){var _0x4a7cx1b=_[_0x6a03[32]](_0x4a7cx1a,_0x6a03[31]);if(_[_0x6a03[33]](_0x4a7cx1b,_0x4a7cx19)>= 0){return true};return false}module[_0x6a03[34]]= Integration
\ No newline at end of file