Built motion from commit 94df3a359.|1.0.33
[motion.git] / server / config / integrations / index.js
index ebecac0..340fafb 100644 (file)
@@ -1 +1 @@
-var _0xcd63=["\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"];_0xcd63[0];var _=require(_0xcd63[1]);var util=require(_0xcd63[2]);var logger=require(_0xcd63[4])(_0xcd63[3]);var IntegrationModel=require(_0xcd63[6])[_0xcd63[5]];var Variable=require(_0xcd63[6])[_0xcd63[7]];var Zendesk=require(_0xcd63[8]);var Salesforce=require(_0xcd63[9]);var Sugarcrm=require(_0xcd63[10]);var Freshdesk=require(_0xcd63[11]);var Motionbar=require(_0xcd63[12]);function Integration(){logger[_0xcd63[14]](_0xcd63[13]);var _0xe7ebxc= new Zendesk();var _0xe7ebxd= new Salesforce();var _0xe7ebxe= new Sugarcrm();var _0xe7ebxf= new Freshdesk();var _0xe7ebx10= new Motionbar();this[_0xcd63[15]]= function(_0xe7ebx11,_0xe7ebx12,_0xe7ebx13,_0xe7ebx14,_0xe7ebx15,_0xe7ebx16,_0xe7ebx17){if(_0xe7ebx11[_0xcd63[16]]=== _0xcd63[17]){_0xe7ebx10[_0xcd63[18]](_0xe7ebx11,_0xe7ebx13,_0xe7ebx12,_0xe7ebx15,_0xe7ebx16)}else {if(integrationIsActive(_0xe7ebx11[_0xcd63[19]],_0xe7ebx17)){switch(_0xe7ebx11[_0xcd63[19]]){case _0xcd63[22]:_0xe7ebxc[_0xcd63[18]](_0xe7ebx11[_0xcd63[20]],_0xe7ebx11[_0xcd63[21]],_0xe7ebx13,_0xe7ebx14,_0xe7ebx12,_0xe7ebx15);break;case _0xcd63[23]:_0xe7ebxd[_0xcd63[18]](_0xe7ebx11[_0xcd63[20]],_0xe7ebx11[_0xcd63[21]],_0xe7ebx13,_0xe7ebx14,_0xe7ebx12,_0xe7ebx15,_0xe7ebx16);break;case _0xcd63[24]:_0xe7ebxe[_0xcd63[18]](_0xe7ebx11[_0xcd63[20]],_0xe7ebx11[_0xcd63[21]],_0xe7ebx13,_0xe7ebx14,_0xe7ebx12,_0xe7ebx15,_0xe7ebx16);break;case _0xcd63[25]:_0xe7ebxf[_0xcd63[18]](_0xe7ebx11[_0xcd63[20]],_0xe7ebx11[_0xcd63[21]],_0xe7ebx13,_0xe7ebx14,_0xe7ebx12,_0xe7ebx15,_0xe7ebx16);break;default:logger[_0xcd63[27]](_0xcd63[26],_0xe7ebx11[_0xcd63[19]])}}else {logger[_0xcd63[30]](util[_0xcd63[29]](_0xcd63[28],_0xe7ebx11[_0xcd63[19]]))}}}}function integrationIsActive(_0xe7ebx19,_0xe7ebx1a){var _0xe7ebx1b=_[_0xcd63[32]](_0xe7ebx1a,_0xcd63[31]);if(_[_0xcd63[33]](_0xe7ebx1b,_0xe7ebx19)>= 0){return true};return false}module[_0xcd63[34]]= Integration
\ No newline at end of file
+var _0x5aef=["\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"];_0x5aef[0];var _=require(_0x5aef[1]);var util=require(_0x5aef[2]);var logger=require(_0x5aef[4])(_0x5aef[3]);var IntegrationModel=require(_0x5aef[6])[_0x5aef[5]];var Variable=require(_0x5aef[6])[_0x5aef[7]];var Zendesk=require(_0x5aef[8]);var Salesforce=require(_0x5aef[9]);var Sugarcrm=require(_0x5aef[10]);var Freshdesk=require(_0x5aef[11]);var Motionbar=require(_0x5aef[12]);function Integration(){logger[_0x5aef[14]](_0x5aef[13]);var _0xf5f7xc= new Zendesk();var _0xf5f7xd= new Salesforce();var _0xf5f7xe= new Sugarcrm();var _0xf5f7xf= new Freshdesk();var _0xf5f7x10= new Motionbar();this[_0x5aef[15]]= function(_0xf5f7x11,_0xf5f7x12,_0xf5f7x13,_0xf5f7x14,_0xf5f7x15,_0xf5f7x16,_0xf5f7x17){if(_0xf5f7x11[_0x5aef[16]]=== _0x5aef[17]){_0xf5f7x10[_0x5aef[18]](_0xf5f7x11,_0xf5f7x13,_0xf5f7x12,_0xf5f7x15,_0xf5f7x16)}else {if(integrationIsActive(_0xf5f7x11[_0x5aef[19]],_0xf5f7x17)){switch(_0xf5f7x11[_0x5aef[19]]){case _0x5aef[22]:_0xf5f7xc[_0x5aef[18]](_0xf5f7x11[_0x5aef[20]],_0xf5f7x11[_0x5aef[21]],_0xf5f7x13,_0xf5f7x14,_0xf5f7x12,_0xf5f7x15,_0xf5f7x16);break;case _0x5aef[23]:_0xf5f7xd[_0x5aef[18]](_0xf5f7x11[_0x5aef[20]],_0xf5f7x11[_0x5aef[21]],_0xf5f7x13,_0xf5f7x14,_0xf5f7x12,_0xf5f7x15,_0xf5f7x16);break;case _0x5aef[24]:_0xf5f7xe[_0x5aef[18]](_0xf5f7x11[_0x5aef[20]],_0xf5f7x11[_0x5aef[21]],_0xf5f7x13,_0xf5f7x14,_0xf5f7x12,_0xf5f7x15,_0xf5f7x16);break;case _0x5aef[25]:_0xf5f7xf[_0x5aef[18]](_0xf5f7x11[_0x5aef[20]],_0xf5f7x11[_0x5aef[21]],_0xf5f7x13,_0xf5f7x14,_0xf5f7x12,_0xf5f7x15,_0xf5f7x16);break;default:logger[_0x5aef[27]](_0x5aef[26],_0xf5f7x11[_0x5aef[19]])}}else {logger[_0x5aef[30]](util[_0x5aef[29]](_0x5aef[28],_0xf5f7x11[_0x5aef[19]]))}}}}function integrationIsActive(_0xf5f7x19,_0xf5f7x1a){var _0xf5f7x1b=_[_0x5aef[32]](_0xf5f7x1a,_0x5aef[31]);if(_[_0x5aef[33]](_0xf5f7x1b,_0xf5f7x19)>= 0){return true};return false}module[_0x5aef[34]]= Integration
\ No newline at end of file