6ca60db02890eb81b50b96a391fefdb88b1f7f22
[motion2.git] / server / services / ami / rpc / integrations / desk.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 _0x1f35=['key','keyContent','variableName','Fields','idField','nameField','customField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','name','username','password','remoteUri','type','serverUrl','Configurations','content','Variable','Descriptions'];(function(_0x4fde08,_0x463a36){var _0x12e725=function(_0x2670c5){while(--_0x2670c5){_0x4fde08['push'](_0x4fde08['shift']());}};_0x12e725(++_0x463a36);}(_0x1f35,0xaa));var _0x51f3=function(_0x2bca61,_0x3e4fdd){_0x2bca61=_0x2bca61-0x0;var _0x5a089a=_0x1f35[_0x2bca61];return _0x5a089a;};'use strict';var client=require(_0x51f3('0x0'));exports[_0x51f3('0x1')]=function(){return function(_0x2e35a9){return client[_0x51f3('0x2')](_0x51f3('0x3'),{'options':{'raw':![],'attributes':['id',_0x51f3('0x4'),'description',_0x51f3('0x5'),_0x51f3('0x6'),_0x51f3('0x7'),'authType',_0x51f3('0x8'),_0x51f3('0x9')],'include':[{'model':'DeskConfiguration','as':_0x51f3('0xa'),'attributes':['id',_0x51f3('0x4')],'include':[{'model':'DeskField','as':'Subjects','attributes':['id',_0x51f3('0x8'),_0x51f3('0xb'),'variableName'],'include':[{'model':_0x51f3('0xc'),'as':_0x51f3('0xc'),'attributes':['id','name']}]},{'model':'DeskField','as':_0x51f3('0xd'),'attributes':['id','type',_0x51f3('0xb'),_0x51f3('0xe'),'keyType',_0x51f3('0xf'),_0x51f3('0x10')],'include':[{'model':'Variable','as':_0x51f3('0xc'),'attributes':['id',_0x51f3('0x4')]}]},{'model':'DeskField','as':_0x51f3('0x11'),'attributes':['id','type','content',_0x51f3('0x12'),_0x51f3('0x13'),_0x51f3('0x14'),_0x51f3('0x10')],'include':[{'model':_0x51f3('0xc'),'as':_0x51f3('0xc'),'attributes':['id',_0x51f3('0x4')]}]},{'model':_0x51f3('0x15'),'as':_0x51f3('0x16'),'attributes':['id','name']}]}]},'log':_0x51f3('0x3')});};};