Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / team / team.model.js
index 1076018..9a81b41 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6f4e=['channel','catch','exports','define','Team','teams','Chat','Fax','Mail','Openchannel','Sms','Voice','Whatsapp','resolve','all','lodash','./team.attributes','get','then','map','setDataValue'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0x6f4e,0xf6));var _0xe6f4=function(_0x1dd2a6,_0x3addc8){_0x1dd2a6=_0x1dd2a6-0x0;var _0x17aafa=_0x6f4e[_0x1dd2a6];return _0x17aafa;};'use strict';var _=require(_0xe6f4('0x0'));var attributes=require(_0xe6f4('0x1'));function getQueuesByChannel(_0x618176,_0x55874c){var _0x53ec24=_0xe6f4('0x2')+_0x55874c+'Queues';return _0x618176[_0x53ec24]()[_0xe6f4('0x3')](function(_0x5dd7c2){return _[_0xe6f4('0x4')](_0x5dd7c2,function(_0x5abb8b){_0x5abb8b[_0xe6f4('0x5')](_0xe6f4('0x6'),_0x55874c);return _0x5abb8b;});})[_0xe6f4('0x7')](function(_0x1271db){throw _0x1271db;});}module[_0xe6f4('0x8')]=function(_0x2baa7f){return _0x2baa7f[_0xe6f4('0x9')](_0xe6f4('0xa'),attributes,{'tableName':_0xe6f4('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getAssociatedQueues':function(){var _0x4b93ac=this;var _0x3ced58=[_0xe6f4('0xc'),_0xe6f4('0xd'),_0xe6f4('0xe'),_0xe6f4('0xf'),_0xe6f4('0x10'),_0xe6f4('0x11'),_0xe6f4('0x12')];return Promise[_0xe6f4('0x13')]()[_0xe6f4('0x3')](function(){var _0x3e0f40=_[_0xe6f4('0x4')](_0x3ced58,function(_0x2c9f58){return getQueuesByChannel(_0x4b93ac,_0x2c9f58);});return Promise[_0xe6f4('0x14')](_0x3e0f40);})[_0xe6f4('0x7')](function(_0x18f9a8){throw _0x18f9a8;});}}});};
\ No newline at end of file
+var _0x2149=['then','map','setDataValue','channel','define','Team','teams','Chat','Mail','Sms','Voice','Whatsapp','resolve','all','get'];(function(_0x138adb,_0x193fee){var _0x1b27f2=function(_0x5e97a2){while(--_0x5e97a2){_0x138adb['push'](_0x138adb['shift']());}};_0x1b27f2(++_0x193fee);}(_0x2149,0xc2));var _0x9214=function(_0x29524d,_0x1c8fc4){_0x29524d=_0x29524d-0x0;var _0x187be2=_0x2149[_0x29524d];return _0x187be2;};'use strict';var _=require('lodash');var attributes=require('./team.attributes');function getQueuesByChannel(_0x4ebdd6,_0x3b9596){var _0x2b7a9e=_0x9214('0x0')+_0x3b9596+'Queues';return _0x4ebdd6[_0x2b7a9e]()[_0x9214('0x1')](function(_0x2fdf4f){return _[_0x9214('0x2')](_0x2fdf4f,function(_0x37118a){_0x37118a[_0x9214('0x3')](_0x9214('0x4'),_0x3b9596);return _0x37118a;});})['catch'](function(_0x2f1786){throw _0x2f1786;});}module['exports']=function(_0x37aa2e){return _0x37aa2e[_0x9214('0x5')](_0x9214('0x6'),attributes,{'tableName':_0x9214('0x7'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getAssociatedQueues':function(){var _0x52e090=this;var _0x33a6c2=[_0x9214('0x8'),'Fax',_0x9214('0x9'),'Openchannel',_0x9214('0xa'),_0x9214('0xb'),_0x9214('0xc')];return Promise[_0x9214('0xd')]()[_0x9214('0x1')](function(){var _0x49fe9a=_[_0x9214('0x2')](_0x33a6c2,function(_0xe164bf){return getQueuesByChannel(_0x52e090,_0xe164bf);});return Promise[_0x9214('0xe')](_0x49fe9a);})['catch'](function(_0xfc6875){throw _0xfc6875;});}}});};
\ No newline at end of file