Built motion from commit d1eab355.|2.6.28
[motion2.git] / server / api / team / team.model.js
index 138a94e..9b7f15f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9ff7=['define','Team','Mail','Openchannel','resolve','all','lodash','./team.attributes','get','Queues','then','map','channel','catch','exports'];(function(_0xe95cae,_0x21dd59){var _0x25beb0=function(_0x23b8b0){while(--_0x23b8b0){_0xe95cae['push'](_0xe95cae['shift']());}};_0x25beb0(++_0x21dd59);}(_0x9ff7,0x7e));var _0x79ff=function(_0x18bf86,_0xa8e65e){_0x18bf86=_0x18bf86-0x0;var _0x66a378=_0x9ff7[_0x18bf86];return _0x66a378;};'use strict';var _=require(_0x79ff('0x0'));var attributes=require(_0x79ff('0x1'));function getQueuesByChannel(_0xd0b999,_0x46034a){var _0x2f05a7=_0x79ff('0x2')+_0x46034a+_0x79ff('0x3');return _0xd0b999[_0x2f05a7]()[_0x79ff('0x4')](function(_0x187dfe){return _[_0x79ff('0x5')](_0x187dfe,function(_0x5cb703){_0x5cb703['setDataValue'](_0x79ff('0x6'),_0x46034a);return _0x5cb703;});})[_0x79ff('0x7')](function(_0x2f198a){throw _0x2f198a;});}module[_0x79ff('0x8')]=function(_0x4f9c6b){return _0x4f9c6b[_0x79ff('0x9')](_0x79ff('0xa'),attributes,{'tableName':'teams','paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getAssociatedQueues':function(){var _0x2106aa=this;var _0x2da7ba=['Chat','Fax',_0x79ff('0xb'),_0x79ff('0xc'),'Sms','Voice','Whatsapp'];return Promise[_0x79ff('0xd')]()['then'](function(){var _0x56af8a=_[_0x79ff('0x5')](_0x2da7ba,function(_0x39c2b0){return getQueuesByChannel(_0x2106aa,_0x39c2b0);});return Promise[_0x79ff('0xe')](_0x56af8a);})[_0x79ff('0x7')](function(_0x38da32){throw _0x38da32;});}}});};
\ No newline at end of file
+var _0x95a9=['Chat','Fax','Mail','Openchannel','Sms','Voice','Whatsapp','resolve','all','catch','lodash','./team.attributes','Queues','then','map','setDataValue','channel','exports','define','Team'];(function(_0x127541,_0xda3c88){var _0x4cce21=function(_0x39b5d4){while(--_0x39b5d4){_0x127541['push'](_0x127541['shift']());}};_0x4cce21(++_0xda3c88);}(_0x95a9,0x172));var _0x995a=function(_0x1a8626,_0x14f403){_0x1a8626=_0x1a8626-0x0;var _0x153526=_0x95a9[_0x1a8626];return _0x153526;};'use strict';var _=require(_0x995a('0x0'));var attributes=require(_0x995a('0x1'));function getQueuesByChannel(_0x4161f8,_0x19eabb){var _0x2f52f4='get'+_0x19eabb+_0x995a('0x2');return _0x4161f8[_0x2f52f4]()[_0x995a('0x3')](function(_0x15ff79){return _[_0x995a('0x4')](_0x15ff79,function(_0x3b6ec3){_0x3b6ec3[_0x995a('0x5')](_0x995a('0x6'),_0x19eabb);return _0x3b6ec3;});})['catch'](function(_0x571005){throw _0x571005;});}module[_0x995a('0x7')]=function(_0x586b41){return _0x586b41[_0x995a('0x8')](_0x995a('0x9'),attributes,{'tableName':'teams','paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getAssociatedQueues':function(){var _0x18d907=this;var _0x3f41f1=[_0x995a('0xa'),_0x995a('0xb'),_0x995a('0xc'),_0x995a('0xd'),_0x995a('0xe'),_0x995a('0xf'),_0x995a('0x10')];return Promise[_0x995a('0x11')]()['then'](function(){var _0x4ead5a=_['map'](_0x3f41f1,function(_0x40f363){return getQueuesByChannel(_0x18d907,_0x40f363);});return Promise[_0x995a('0x12')](_0x4ead5a);})[_0x995a('0x13')](function(_0x527678){throw _0x527678;});}}});};
\ No newline at end of file