Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / team / team.model.js
index 04e6725..cc8f408 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8f3d=['map','channel','catch','define','Team','teams','Chat','Fax','Mail','Openchannel','Sms','Voice','Whatsapp','resolve','lodash','./team.attributes','then'];(function(_0x1fc9e8,_0x382720){var _0x55b160=function(_0x4e1db6){while(--_0x4e1db6){_0x1fc9e8['push'](_0x1fc9e8['shift']());}};_0x55b160(++_0x382720);}(_0x8f3d,0x96));var _0xd8f3=function(_0x1442b0,_0x2bfe92){_0x1442b0=_0x1442b0-0x0;var _0xe195c0=_0x8f3d[_0x1442b0];return _0xe195c0;};'use strict';var _=require(_0xd8f3('0x0'));var attributes=require(_0xd8f3('0x1'));function getQueuesByChannel(_0x34c33b,_0x520187){var _0x16381d='get'+_0x520187+'Queues';return _0x34c33b[_0x16381d]()[_0xd8f3('0x2')](function(_0x28f0a7){return _[_0xd8f3('0x3')](_0x28f0a7,function(_0x32b3cc){_0x32b3cc['setDataValue'](_0xd8f3('0x4'),_0x520187);return _0x32b3cc;});})[_0xd8f3('0x5')](function(_0x55a9cc){throw _0x55a9cc;});}module['exports']=function(_0x200e89){return _0x200e89[_0xd8f3('0x6')](_0xd8f3('0x7'),attributes,{'tableName':_0xd8f3('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getAssociatedQueues':function(){var _0x4dee6d=this;var _0x2033c3=[_0xd8f3('0x9'),_0xd8f3('0xa'),_0xd8f3('0xb'),_0xd8f3('0xc'),_0xd8f3('0xd'),_0xd8f3('0xe'),_0xd8f3('0xf')];return Promise[_0xd8f3('0x10')]()[_0xd8f3('0x2')](function(){var _0x1a71cf=_[_0xd8f3('0x3')](_0x2033c3,function(_0x5b7cce){return getQueuesByChannel(_0x4dee6d,_0x5b7cce);});return Promise['all'](_0x1a71cf);})[_0xd8f3('0x5')](function(_0x50d3bd){throw _0x50d3bd;});}}});};
\ No newline at end of file
+var _0x29f8=['channel','catch','exports','define','Team','Chat','Openchannel','Sms','Voice','Whatsapp','resolve','all','lodash','./team.attributes','get','Queues','then','map','setDataValue'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x29f8,0x13c));var _0x829f=function(_0x4e1d03,_0x786f3a){_0x4e1d03=_0x4e1d03-0x0;var _0x362d4b=_0x29f8[_0x4e1d03];return _0x362d4b;};'use strict';var _=require(_0x829f('0x0'));var attributes=require(_0x829f('0x1'));function getQueuesByChannel(_0x44ccea,_0x38bd13){var _0x498f85=_0x829f('0x2')+_0x38bd13+_0x829f('0x3');return _0x44ccea[_0x498f85]()[_0x829f('0x4')](function(_0x4ef8f6){return _[_0x829f('0x5')](_0x4ef8f6,function(_0x407b2c){_0x407b2c[_0x829f('0x6')](_0x829f('0x7'),_0x38bd13);return _0x407b2c;});})[_0x829f('0x8')](function(_0x377b53){throw _0x377b53;});}module[_0x829f('0x9')]=function(_0x33cd1d){return _0x33cd1d[_0x829f('0xa')](_0x829f('0xb'),attributes,{'tableName':'teams','paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getAssociatedQueues':function(){var _0x5df09d=this;var _0x4817b7=[_0x829f('0xc'),'Fax','Mail',_0x829f('0xd'),_0x829f('0xe'),_0x829f('0xf'),_0x829f('0x10')];return Promise[_0x829f('0x11')]()[_0x829f('0x4')](function(){var _0x317c66=_[_0x829f('0x5')](_0x4817b7,function(_0x62ea95){return getQueuesByChannel(_0x5df09d,_0x62ea95);});return Promise[_0x829f('0x12')](_0x317c66);})[_0x829f('0x8')](function(_0x51d43c){throw _0x51d43c;});}}});};
\ No newline at end of file