4b300f94332e97061d5e8b49b7d2ec9e4bcce9cf
[motion2.git] / server / services / routing / rpc / chatQueue.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 _0xadaa=['online','chatPause','getChatQueues','../client','Request','GetChatQueue','name','strategy','Agents'];(function(_0xc71fca,_0x3c85b3){var _0x2f4da2=function(_0x222033){while(--_0x222033){_0xc71fca['push'](_0xc71fca['shift']());}};_0x2f4da2(++_0x3c85b3);}(_0xadaa,0x1aa));var _0xaada=function(_0x423088,_0x485f97){_0x423088=_0x423088-0x0;var _0x4994ae=_0xadaa[_0x423088];return _0x4994ae;};'use strict';var client=require(_0xaada('0x0'));exports['getChatQueues']=function(){return function(){return client[_0xaada('0x1')](_0xaada('0x2'),{'options':{'raw':![],'attributes':['id',_0xaada('0x3'),'timeout',_0xaada('0x4')],'include':[{'model':'User','as':_0xaada('0x5'),'attributes':['id',_0xaada('0x3'),_0xaada('0x6'),_0xaada('0x7')]}]},'log':_0xaada('0x8')});};};