40da0661d2987efb1c11fc427c5a195e6755c72a
[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 _0xe189=['DeskField','Descriptions','key','keyType','keyContent','Variable','content','idField','customField','Tag','Tags','GetDeskAccount','../../client','name','password','remoteUri','authType','type','DeskConfiguration','Configurations','variableName'];(function(_0xcd49bd,_0x2a12a3){var _0xb6ee44=function(_0x1f77bb){while(--_0x1f77bb){_0xcd49bd['push'](_0xcd49bd['shift']());}};_0xb6ee44(++_0x2a12a3);}(_0xe189,0xb4));var _0x9e18=function(_0x55dcab,_0x5646f8){_0x55dcab=_0x55dcab-0x0;var _0x86b009=_0xe189[_0x55dcab];return _0x86b009;};'use strict';var client=require(_0x9e18('0x0'));exports['getDeskAccounts']=function(){return function(_0x195a85){return client['Request']('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0x9e18('0x1'),'description','username',_0x9e18('0x2'),_0x9e18('0x3'),_0x9e18('0x4'),_0x9e18('0x5'),'serverUrl'],'include':[{'model':_0x9e18('0x6'),'as':_0x9e18('0x7'),'attributes':['id',_0x9e18('0x1')],'include':[{'model':'DeskField','as':'Subjects','attributes':['id',_0x9e18('0x5'),'content',_0x9e18('0x8')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x9e18('0x1')]}]},{'model':_0x9e18('0x9'),'as':_0x9e18('0xa'),'attributes':['id',_0x9e18('0x5'),'content',_0x9e18('0xb'),_0x9e18('0xc'),_0x9e18('0xd'),'variableName'],'include':[{'model':_0x9e18('0xe'),'as':_0x9e18('0xe'),'attributes':['id',_0x9e18('0x1')]}]},{'model':_0x9e18('0x9'),'as':'Fields','attributes':['id',_0x9e18('0x5'),_0x9e18('0xf'),_0x9e18('0x10'),'nameField',_0x9e18('0x11'),_0x9e18('0x8')],'include':[{'model':_0x9e18('0xe'),'as':'Variable','attributes':['id',_0x9e18('0x1')]}]},{'model':_0x9e18('0x12'),'as':_0x9e18('0x13'),'attributes':['id',_0x9e18('0x1')]}]}]},'log':_0x9e18('0x14')});};};