Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / team / team.model.js
index 052c1d2..1e5c3f8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x07cd=['Mail','Openchannel','Sms','resolve','all','lodash','get','Queues','then','map','channel','catch','exports','define','Team','Fax'];(function(_0x20b4bd,_0x313899){var _0x4677c0=function(_0x364cc0){while(--_0x364cc0){_0x20b4bd['push'](_0x20b4bd['shift']());}};_0x4677c0(++_0x313899);}(_0x07cd,0x115));var _0xd07c=function(_0x4c2623,_0x4838bb){_0x4c2623=_0x4c2623-0x0;var _0x2be431=_0x07cd[_0x4c2623];return _0x2be431;};'use strict';var _=require(_0xd07c('0x0'));var attributes=require('./team.attributes');function getQueuesByChannel(_0x16f02c,_0x54c944){var _0x4cfe2c=_0xd07c('0x1')+_0x54c944+_0xd07c('0x2');return _0x16f02c[_0x4cfe2c]()[_0xd07c('0x3')](function(_0x587655){return _[_0xd07c('0x4')](_0x587655,function(_0x35c467){_0x35c467['setDataValue'](_0xd07c('0x5'),_0x54c944);return _0x35c467;});})[_0xd07c('0x6')](function(_0x1acdf1){throw _0x1acdf1;});}module[_0xd07c('0x7')]=function(_0x167f6a){return _0x167f6a[_0xd07c('0x8')](_0xd07c('0x9'),attributes,{'tableName':'teams','paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getAssociatedQueues':function(){var _0x23f32a=this;var _0x59271d=['Chat',_0xd07c('0xa'),_0xd07c('0xb'),_0xd07c('0xc'),_0xd07c('0xd'),'Voice','Whatsapp'];return Promise[_0xd07c('0xe')]()['then'](function(){var _0x5de9da=_[_0xd07c('0x4')](_0x59271d,function(_0x136ebd){return getQueuesByChannel(_0x23f32a,_0x136ebd);});return Promise[_0xd07c('0xf')](_0x5de9da);})['catch'](function(_0xecb5cd){throw _0xecb5cd;});}}});};
\ No newline at end of file
+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