3ae8400608969998b101899cd03ac59e822e7848
[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 _0x3343=['mailPause','getMailQueues','Request','GetMailQueue','name','timeout','strategy','Agents'];(function(_0x4baae2,_0x487ab6){var _0x1a2285=function(_0x1cea47){while(--_0x1cea47){_0x4baae2['push'](_0x4baae2['shift']());}};_0x1a2285(++_0x487ab6);}(_0x3343,0x1aa));var _0x3334=function(_0x1103c4,_0x562d1d){_0x1103c4=_0x1103c4-0x0;var _0x1c19ab=_0x3343[_0x1103c4];return _0x1c19ab;};'use strict';var client=require('../client');exports['getMailQueues']=function(){return function(){return client[_0x3334('0x0')](_0x3334('0x1'),{'options':{'raw':![],'attributes':['id',_0x3334('0x2'),_0x3334('0x3'),_0x3334('0x4')],'include':[{'model':'User','as':_0x3334('0x5'),'attributes':['id',_0x3334('0x2'),'online',_0x3334('0x6')]}]},'log':_0x3334('0x7')});};};