b8be04b90eb4920b313a3d4a21d7d23938f73df0
[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 _0xfa24=['variableName','Fields','idField','customField','Tags','Request','GetDeskAccount','description','password','authType','type','DeskConfiguration','Configurations','name','DeskField','Subjects','content','Variable','keyType','keyContent'];(function(_0x46119c,_0x34e049){var _0xa03d16=function(_0x12eb60){while(--_0x12eb60){_0x46119c['push'](_0x46119c['shift']());}};_0xa03d16(++_0x34e049);}(_0xfa24,0x109));var _0x4fa2=function(_0x1627ae,_0x2aaa24){_0x1627ae=_0x1627ae-0x0;var _0x34b38f=_0xfa24[_0x1627ae];return _0x34b38f;};'use strict';var client=require('../../client');exports['getDeskAccounts']=function(){return function(_0x169e68){return client[_0x4fa2('0x0')](_0x4fa2('0x1'),{'options':{'raw':![],'attributes':['id','name',_0x4fa2('0x2'),'username',_0x4fa2('0x3'),'remoteUri',_0x4fa2('0x4'),_0x4fa2('0x5'),'serverUrl'],'include':[{'model':_0x4fa2('0x6'),'as':_0x4fa2('0x7'),'attributes':['id',_0x4fa2('0x8')],'include':[{'model':_0x4fa2('0x9'),'as':_0x4fa2('0xa'),'attributes':['id','type',_0x4fa2('0xb'),'variableName'],'include':[{'model':_0x4fa2('0xc'),'as':_0x4fa2('0xc'),'attributes':['id','name']}]},{'model':_0x4fa2('0x9'),'as':'Descriptions','attributes':['id',_0x4fa2('0x5'),_0x4fa2('0xb'),'key',_0x4fa2('0xd'),_0x4fa2('0xe'),_0x4fa2('0xf')],'include':[{'model':_0x4fa2('0xc'),'as':'Variable','attributes':['id','name']}]},{'model':_0x4fa2('0x9'),'as':_0x4fa2('0x10'),'attributes':['id',_0x4fa2('0x5'),_0x4fa2('0xb'),_0x4fa2('0x11'),'nameField',_0x4fa2('0x12'),_0x4fa2('0xf')],'include':[{'model':_0x4fa2('0xc'),'as':_0x4fa2('0xc'),'attributes':['id','name']}]},{'model':'Tag','as':_0x4fa2('0x13'),'attributes':['id',_0x4fa2('0x8')]}]}]},'log':'GetDeskAccount'});};};