a2d7edabf9c37633ee510800ef12d3780fbea0bd
[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 _0x8522=['Agents','name','getMailQueues','Request','timeout','strategy','User'];(function(_0x465a0c,_0x19d4d5){var _0x1e202e=function(_0x27bd8a){while(--_0x27bd8a){_0x465a0c['push'](_0x465a0c['shift']());}};_0x1e202e(++_0x19d4d5);}(_0x8522,0x18b));var _0x2852=function(_0x4c98b9,_0x1ad11b){_0x4c98b9=_0x4c98b9-0x0;var _0x3a257a=_0x8522[_0x4c98b9];return _0x3a257a;};'use strict';var client=require('../client');exports['getMailQueues']=function(){return function(){return client[_0x2852('0x0')]('GetMailQueue',{'options':{'raw':![],'attributes':['id','name',_0x2852('0x1'),_0x2852('0x2')],'include':[{'model':_0x2852('0x3'),'as':_0x2852('0x4'),'attributes':['id',_0x2852('0x5'),'online','mailPause']}]},'log':_0x2852('0x6')});};};