Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / team / team.model.js
index c7544cc..9a81b41 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfa28=['./team.attributes','define','teams','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x37d244,_0x912289){var _0x4b7ecd=function(_0x4a3b1a){while(--_0x4a3b1a){_0x37d244['push'](_0x37d244['shift']());}};_0x4b7ecd(++_0x912289);}(_0xfa28,0xbe));var _0x8fa2=function(_0x72a33d,_0x5691da){_0x72a33d=_0x72a33d-0x0;var _0x2621d5=_0xfa28[_0x72a33d];return _0x2621d5;};'use strict';var _=require('lodash');var util=require(_0x8fa2('0x0'));var logger=require(_0x8fa2('0x1'))(_0x8fa2('0x2'));var moment=require(_0x8fa2('0x3'));var BPromise=require(_0x8fa2('0x4'));var rp=require(_0x8fa2('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x8fa2('0x6'));var config=require(_0x8fa2('0x7'));var attributes=require(_0x8fa2('0x8'));module['exports']=function(_0x4b72c1,_0x41a357){return _0x4b72c1[_0x8fa2('0x9')]('Team',attributes,{'tableName':_0x8fa2('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ 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