Built motion from commit e0fa946e.|2.6.5
[motion2.git] / server / api / team / team.model.js
index e914dae..3e324ae 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0787=['Whatsapp','resolve','then','all','lodash','get','Queues','map','setDataValue','channel','define','Team','teams','Fax','Mail','Voice'];(function(_0x54bf36,_0x5b7c1e){var _0x590c3e=function(_0x21906a){while(--_0x21906a){_0x54bf36['push'](_0x54bf36['shift']());}};_0x590c3e(++_0x5b7c1e);}(_0x0787,0xc4));var _0x7078=function(_0x1e91eb,_0x5829a3){_0x1e91eb=_0x1e91eb-0x0;var _0x2af75a=_0x0787[_0x1e91eb];return _0x2af75a;};'use strict';var _=require(_0x7078('0x0'));var attributes=require('./team.attributes');function getQueuesByChannel(_0x44d520,_0x53a2de){var _0xe45a9a=_0x7078('0x1')+_0x53a2de+_0x7078('0x2');return _0x44d520[_0xe45a9a]()['then'](function(_0x4433c5){return _[_0x7078('0x3')](_0x4433c5,function(_0x4e65d8){_0x4e65d8[_0x7078('0x4')](_0x7078('0x5'),_0x53a2de);return _0x4e65d8;});})['catch'](function(_0x4600b5){throw _0x4600b5;});}module['exports']=function(_0x703fb9){return _0x703fb9[_0x7078('0x6')](_0x7078('0x7'),attributes,{'tableName':_0x7078('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getAssociatedQueues':function(){var _0x174afb=this;var _0x421c07=['Chat',_0x7078('0x9'),_0x7078('0xa'),'Openchannel','Sms',_0x7078('0xb'),_0x7078('0xc')];return Promise[_0x7078('0xd')]()[_0x7078('0xe')](function(){var _0x429d4c=_[_0x7078('0x3')](_0x421c07,function(_0x59c936){return getQueuesByChannel(_0x174afb,_0x59c936);});return Promise[_0x7078('0xf')](_0x429d4c);})['catch'](function(_0x3decf2){throw _0x3decf2;});}}});};
\ No newline at end of file
+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