Built motion from commit 52c8a02d.|2.6.29
[motion2.git] / server / api / team / team.model.js
index 407f371..ba79fce 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf185=['Mail','Openchannel','Sms','Voice','Whatsapp','resolve','all','catch','lodash','./team.attributes','Queues','then','map','setDataValue','channel','exports','Team','Chat','Fax'];(function(_0x50bb27,_0x5715e0){var _0x237456=function(_0x7574f5){while(--_0x7574f5){_0x50bb27['push'](_0x50bb27['shift']());}};_0x237456(++_0x5715e0);}(_0xf185,0x1bd));var _0x5f18=function(_0x2b0f13,_0x49db0d){_0x2b0f13=_0x2b0f13-0x0;var _0x5e35bb=_0xf185[_0x2b0f13];return _0x5e35bb;};'use strict';var _=require(_0x5f18('0x0'));var attributes=require(_0x5f18('0x1'));function getQueuesByChannel(_0x4763e6,_0x2ce949){var _0xfb9357='get'+_0x2ce949+_0x5f18('0x2');return _0x4763e6[_0xfb9357]()[_0x5f18('0x3')](function(_0x3e5829){return _[_0x5f18('0x4')](_0x3e5829,function(_0x78715){_0x78715[_0x5f18('0x5')](_0x5f18('0x6'),_0x2ce949);return _0x78715;});})['catch'](function(_0x220a32){throw _0x220a32;});}module[_0x5f18('0x7')]=function(_0x5475e7){return _0x5475e7['define'](_0x5f18('0x8'),attributes,{'tableName':'teams','paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getAssociatedQueues':function(){var _0x2d4375=this;var _0x4f4c2a=[_0x5f18('0x9'),_0x5f18('0xa'),_0x5f18('0xb'),_0x5f18('0xc'),_0x5f18('0xd'),_0x5f18('0xe'),_0x5f18('0xf')];return Promise[_0x5f18('0x10')]()[_0x5f18('0x3')](function(){var _0x56833f=_[_0x5f18('0x4')](_0x4f4c2a,function(_0x11c1ea){return getQueuesByChannel(_0x2d4375,_0x11c1ea);});return Promise[_0x5f18('0x11')](_0x56833f);})[_0x5f18('0x12')](function(_0x330dfc){throw _0x330dfc;});}}});};
\ No newline at end of file
+var _0x9c99=['Fax','Openchannel','Sms','Voice','Whatsapp','resolve','map','all','lodash','Queues','then','setDataValue','channel','exports','define','Team','Chat'];(function(_0x1a4e8b,_0xb673bd){var _0xa4da36=function(_0x5aef5e){while(--_0x5aef5e){_0x1a4e8b['push'](_0x1a4e8b['shift']());}};_0xa4da36(++_0xb673bd);}(_0x9c99,0x13a));var _0x99c9=function(_0x524efa,_0xbe406e){_0x524efa=_0x524efa-0x0;var _0x775cd5=_0x9c99[_0x524efa];return _0x775cd5;};'use strict';var _=require(_0x99c9('0x0'));var attributes=require('./team.attributes');function getQueuesByChannel(_0x599e57,_0x11e17f){var _0x2796a7='get'+_0x11e17f+_0x99c9('0x1');return _0x599e57[_0x2796a7]()[_0x99c9('0x2')](function(_0x9856b6){return _['map'](_0x9856b6,function(_0x318fb0){_0x318fb0[_0x99c9('0x3')](_0x99c9('0x4'),_0x11e17f);return _0x318fb0;});})['catch'](function(_0x39dc2a){throw _0x39dc2a;});}module[_0x99c9('0x5')]=function(_0xc4321a){return _0xc4321a[_0x99c9('0x6')](_0x99c9('0x7'),attributes,{'tableName':'teams','paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getAssociatedQueues':function(){var _0x213632=this;var _0x2063fd=[_0x99c9('0x8'),_0x99c9('0x9'),'Mail',_0x99c9('0xa'),_0x99c9('0xb'),_0x99c9('0xc'),_0x99c9('0xd')];return Promise[_0x99c9('0xe')]()[_0x99c9('0x2')](function(){var _0x52746f=_[_0x99c9('0xf')](_0x2063fd,function(_0x33df51){return getQueuesByChannel(_0x213632,_0x33df51);});return Promise[_0x99c9('0x10')](_0x52746f);})['catch'](function(_0x167ba8){throw _0x167ba8;});}}});};
\ No newline at end of file