95634b12184f9b432c314f8797aa4bd6e0c6a137
[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 _0xcb03=['GetMailQueue','User','name','mailPause','getMailQueues'];(function(_0xd27ded,_0x1164e2){var _0x5ef850=function(_0x582e7d){while(--_0x582e7d){_0xd27ded['push'](_0xd27ded['shift']());}};_0x5ef850(++_0x1164e2);}(_0xcb03,0x19f));var _0x3cb0=function(_0x51e485,_0x56005a){_0x51e485=_0x51e485-0x0;var _0x8b5d4e=_0xcb03[_0x51e485];return _0x8b5d4e;};'use strict';var client=require('../client');exports['getMailQueues']=function(){return function(){return client['Request'](_0x3cb0('0x0'),{'options':{'raw':![],'attributes':['id','name','timeout','strategy'],'include':[{'model':_0x3cb0('0x1'),'as':'Agents','attributes':['id',_0x3cb0('0x2'),'online',_0x3cb0('0x3')]}]},'log':_0x3cb0('0x4')});};};