Built motion from commit 3061e47c.|2.6.31
[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 _0x9719=['User','Agents','online','mailPause','getMailQueues','../client','name','timeout','strategy'];(function(_0x432f78,_0x3c90c1){var _0x1cad04=function(_0x47385f){while(--_0x47385f){_0x432f78['push'](_0x432f78['shift']());}};_0x1cad04(++_0x3c90c1);}(_0x9719,0x1e2));var _0x9971=function(_0x40a045,_0x516f0e){_0x40a045=_0x40a045-0x0;var _0x1a687c=_0x9719[_0x40a045];return _0x1a687c;};'use strict';var client=require(_0x9971('0x0'));exports['getMailQueues']=function(){return function(){return client['Request']('GetMailQueue',{'options':{'raw':![],'attributes':['id',_0x9971('0x1'),_0x9971('0x2'),_0x9971('0x3')],'include':[{'model':_0x9971('0x4'),'as':_0x9971('0x5'),'attributes':['id',_0x9971('0x1'),_0x9971('0x6'),_0x9971('0x7')]}]},'log':_0x9971('0x8')});};};