42848eb34375438065344f492936061ca1531564
[motion2.git] / server / services / routing / rpc / mailQueue.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x2d97=['../client','Request','GetMailQueue','timeout','User','name','online','mailPause','getMailQueues'];(function(_0x25ca44,_0x111633){var _0x4897c1=function(_0xf344b9){while(--_0xf344b9){_0x25ca44['push'](_0x25ca44['shift']());}};_0x4897c1(++_0x111633);}(_0x2d97,0xb4));var _0x72d9=function(_0x717a97,_0x525e24){_0x717a97=_0x717a97-0x0;var _0x246748=_0x2d97[_0x717a97];return _0x246748;};'use strict';var client=require(_0x72d9('0x0'));exports['getMailQueues']=function(){return function(){return client[_0x72d9('0x1')](_0x72d9('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x72d9('0x3'),'strategy'],'include':[{'model':_0x72d9('0x4'),'as':'Agents','attributes':['id',_0x72d9('0x5'),_0x72d9('0x6'),_0x72d9('0x7')]}]},'log':_0x72d9('0x8')});};};