bd935d3a9f500620a1e689c6c0afb519b2806b94
[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 _0xb495=['GetMailQueue','name','timeout','strategy','User','Agents','mailPause','../client','getMailQueues','Request'];(function(_0xd7ee0e,_0x2a69b0){var _0x5f2b3e=function(_0x568bf9){while(--_0x568bf9){_0xd7ee0e['push'](_0xd7ee0e['shift']());}};_0x5f2b3e(++_0x2a69b0);}(_0xb495,0x93));var _0x5b49=function(_0x155b25,_0x80a08d){_0x155b25=_0x155b25-0x0;var _0x503a8c=_0xb495[_0x155b25];return _0x503a8c;};'use strict';var client=require(_0x5b49('0x0'));exports[_0x5b49('0x1')]=function(){return function(){return client[_0x5b49('0x2')](_0x5b49('0x3'),{'options':{'raw':![],'attributes':['id',_0x5b49('0x4'),_0x5b49('0x5'),_0x5b49('0x6')],'include':[{'model':_0x5b49('0x7'),'as':_0x5b49('0x8'),'attributes':['id',_0x5b49('0x4'),'online',_0x5b49('0x9')]}]},'log':_0x5b49('0x1')});};};