1870206679c14294d6843c43683d5871f061fbb1
[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 _0x1498=['nameField','customField','Tag','Request','name','description','username','authType','type','serverUrl','DeskConfiguration','Configurations','DeskField','Variable','content','key','keyType','keyContent','variableName','Fields','idField'];(function(_0x3740fe,_0x6c543c){var _0x55492b=function(_0x1f851f){while(--_0x1f851f){_0x3740fe['push'](_0x3740fe['shift']());}};_0x55492b(++_0x6c543c);}(_0x1498,0x96));var _0x8149=function(_0x567cd3,_0x59568a){_0x567cd3=_0x567cd3-0x0;var _0x3b7fa0=_0x1498[_0x567cd3];return _0x3b7fa0;};'use strict';var client=require('../../client');exports['getDeskAccounts']=function(){return function(_0x40dacc){return client[_0x8149('0x0')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0x8149('0x1'),_0x8149('0x2'),_0x8149('0x3'),'password','remoteUri',_0x8149('0x4'),_0x8149('0x5'),_0x8149('0x6')],'include':[{'model':_0x8149('0x7'),'as':_0x8149('0x8'),'attributes':['id','name'],'include':[{'model':_0x8149('0x9'),'as':'Subjects','attributes':['id',_0x8149('0x5'),'content','variableName'],'include':[{'model':'Variable','as':_0x8149('0xa'),'attributes':['id',_0x8149('0x1')]}]},{'model':'DeskField','as':'Descriptions','attributes':['id',_0x8149('0x5'),_0x8149('0xb'),_0x8149('0xc'),_0x8149('0xd'),_0x8149('0xe'),_0x8149('0xf')],'include':[{'model':_0x8149('0xa'),'as':_0x8149('0xa'),'attributes':['id','name']}]},{'model':'DeskField','as':_0x8149('0x10'),'attributes':['id',_0x8149('0x5'),_0x8149('0xb'),_0x8149('0x11'),_0x8149('0x12'),_0x8149('0x13'),_0x8149('0xf')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x8149('0x1')]}]},{'model':_0x8149('0x14'),'as':'Tags','attributes':['id',_0x8149('0x1')]}]}]},'log':'GetDeskAccount'});};};