Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / team / team.model.js
index 1e5c3f8..628c1be 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5e18=['map','setDataValue','channel','catch','exports','Team','teams','Chat','Fax','Openchannel','Sms','Voice','Whatsapp','resolve','all','lodash','./team.attributes','Queues','then'];(function(_0x203a0b,_0x583c98){var _0x590daf=function(_0xe79875){while(--_0xe79875){_0x203a0b['push'](_0x203a0b['shift']());}};_0x590daf(++_0x583c98);}(_0x5e18,0xf3));var _0x85e1=function(_0x170c8b,_0x356ef8){_0x170c8b=_0x170c8b-0x0;var _0x118ab0=_0x5e18[_0x170c8b];return _0x118ab0;};'use strict';var _=require(_0x85e1('0x0'));var attributes=require(_0x85e1('0x1'));function getQueuesByChannel(_0x46c230,_0x4a75d4){var _0x4d60af='get'+_0x4a75d4+_0x85e1('0x2');return _0x46c230[_0x4d60af]()[_0x85e1('0x3')](function(_0xe31a6b){return _[_0x85e1('0x4')](_0xe31a6b,function(_0x4b3945){_0x4b3945[_0x85e1('0x5')](_0x85e1('0x6'),_0x4a75d4);return _0x4b3945;});})[_0x85e1('0x7')](function(_0x202bb6){throw _0x202bb6;});}module[_0x85e1('0x8')]=function(_0x54853f){return _0x54853f['define'](_0x85e1('0x9'),attributes,{'tableName':_0x85e1('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getAssociatedQueues':function(){var _0x510813=this;var _0x40004f=[_0x85e1('0xb'),_0x85e1('0xc'),'Mail',_0x85e1('0xd'),_0x85e1('0xe'),_0x85e1('0xf'),_0x85e1('0x10')];return Promise[_0x85e1('0x11')]()['then'](function(){var _0xfc4df6=_[_0x85e1('0x4')](_0x40004f,function(_0x5ab427){return getQueuesByChannel(_0x510813,_0x5ab427);});return Promise[_0x85e1('0x12')](_0xfc4df6);})[_0x85e1('0x7')](function(_0x2bb68e){throw _0x2bb68e;});}}});};
\ No newline at end of file
+var _0x9685=['Team','teams','Chat','Mail','Openchannel','Sms','Voice','Whatsapp','resolve','lodash','./team.attributes','Queues','then','map','setDataValue','channel','catch','exports','define'];(function(_0x242514,_0x562b9a){var _0x292c28=function(_0x36f8e4){while(--_0x36f8e4){_0x242514['push'](_0x242514['shift']());}};_0x292c28(++_0x562b9a);}(_0x9685,0x172));var _0x5968=function(_0x1c0018,_0x4926a7){_0x1c0018=_0x1c0018-0x0;var _0x4a8d3e=_0x9685[_0x1c0018];return _0x4a8d3e;};'use strict';var _=require(_0x5968('0x0'));var attributes=require(_0x5968('0x1'));function getQueuesByChannel(_0x5928ab,_0x4db2ee){var _0x27d8a9='get'+_0x4db2ee+_0x5968('0x2');return _0x5928ab[_0x27d8a9]()[_0x5968('0x3')](function(_0x11105c){return _[_0x5968('0x4')](_0x11105c,function(_0x48bc5c){_0x48bc5c[_0x5968('0x5')](_0x5968('0x6'),_0x4db2ee);return _0x48bc5c;});})[_0x5968('0x7')](function(_0x3fb890){throw _0x3fb890;});}module[_0x5968('0x8')]=function(_0x5aa366){return _0x5aa366[_0x5968('0x9')](_0x5968('0xa'),attributes,{'tableName':_0x5968('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getAssociatedQueues':function(){var _0x1ef811=this;var _0x2090cc=[_0x5968('0xc'),'Fax',_0x5968('0xd'),_0x5968('0xe'),_0x5968('0xf'),_0x5968('0x10'),_0x5968('0x11')];return Promise[_0x5968('0x12')]()['then'](function(){var _0x1323e6=_['map'](_0x2090cc,function(_0x5ead04){return getQueuesByChannel(_0x1ef811,_0x5ead04);});return Promise['all'](_0x1323e6);})['catch'](function(_0x107650){throw _0x107650;});}}});};
\ No newline at end of file