4678b7d30d5d56ee12fd3bceb078693d74705e5a
[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 _0x5447=['getChatQueues','../client','Request','GetChatQueue','timeout','User','Agents','name','online','chatPause'];(function(_0x12e43d,_0x38290d){var _0x1cbe4e=function(_0x420f32){while(--_0x420f32){_0x12e43d['push'](_0x12e43d['shift']());}};_0x1cbe4e(++_0x38290d);}(_0x5447,0xf1));var _0x7544=function(_0x3ddf9d,_0x1c78ab){_0x3ddf9d=_0x3ddf9d-0x0;var _0x45bfb9=_0x5447[_0x3ddf9d];return _0x45bfb9;};'use strict';var client=require(_0x7544('0x0'));exports['getChatQueues']=function(){return function(){return client[_0x7544('0x1')](_0x7544('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x7544('0x3'),'strategy'],'include':[{'model':_0x7544('0x4'),'as':_0x7544('0x5'),'attributes':['id',_0x7544('0x6'),_0x7544('0x7'),_0x7544('0x8')]}]},'log':_0x7544('0x9')});};};