Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / team / team.model.js
index 3e324ae..9a81b41 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfc65=['Voice','resolve','map','all','lodash','get','Queues','then','setDataValue','catch','exports','define','Team','teams','Mail','Sms'];(function(_0x413feb,_0x10477f){var _0x40ee88=function(_0x32a3f6){while(--_0x32a3f6){_0x413feb['push'](_0x413feb['shift']());}};_0x40ee88(++_0x10477f);}(_0xfc65,0xb4));var _0x5fc6=function(_0x322e82,_0x2a166a){_0x322e82=_0x322e82-0x0;var _0x456cc8=_0xfc65[_0x322e82];return _0x456cc8;};'use strict';var _=require(_0x5fc6('0x0'));var attributes=require('./team.attributes');function getQueuesByChannel(_0x3f61d0,_0x406295){var _0x5cac9f=_0x5fc6('0x1')+_0x406295+_0x5fc6('0x2');return _0x3f61d0[_0x5cac9f]()[_0x5fc6('0x3')](function(_0x1048df){return _['map'](_0x1048df,function(_0x4c3179){_0x4c3179[_0x5fc6('0x4')]('channel',_0x406295);return _0x4c3179;});})[_0x5fc6('0x5')](function(_0x5d91dd){throw _0x5d91dd;});}module[_0x5fc6('0x6')]=function(_0xd17016){return _0xd17016[_0x5fc6('0x7')](_0x5fc6('0x8'),attributes,{'tableName':_0x5fc6('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getAssociatedQueues':function(){var _0x65610d=this;var _0x394b08=['Chat','Fax',_0x5fc6('0xa'),'Openchannel',_0x5fc6('0xb'),_0x5fc6('0xc'),'Whatsapp'];return Promise[_0x5fc6('0xd')]()[_0x5fc6('0x3')](function(){var _0x331564=_[_0x5fc6('0xe')](_0x394b08,function(_0x3062fd){return getQueuesByChannel(_0x65610d,_0x3062fd);});return Promise[_0x5fc6('0xf')](_0x331564);})[_0x5fc6('0x5')](function(_0x529b28){throw _0x529b28;});}}});};
\ 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