59a2e64383eed997f6604aa6d715db9a25ca470a
[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 _0xa4f4=['nameField','Tag','Tags','GetDeskAccount','../../client','Request','description','username','password','remoteUri','type','DeskConfiguration','Configurations','name','Subjects','content','variableName','Variable','DeskField','key','keyType','keyContent','Fields','idField'];(function(_0x1a1bb1,_0x588b5e){var _0xb036bc=function(_0x1dae46){while(--_0x1dae46){_0x1a1bb1['push'](_0x1a1bb1['shift']());}};_0xb036bc(++_0x588b5e);}(_0xa4f4,0x154));var _0x4a4f=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0xa4f4[_0x4a9fb1];return _0x348672;};'use strict';var client=require(_0x4a4f('0x0'));exports['getDeskAccounts']=function(){return function(_0x2e5af1){return client[_0x4a4f('0x1')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id','name',_0x4a4f('0x2'),_0x4a4f('0x3'),_0x4a4f('0x4'),_0x4a4f('0x5'),'authType',_0x4a4f('0x6'),'serverUrl'],'include':[{'model':_0x4a4f('0x7'),'as':_0x4a4f('0x8'),'attributes':['id',_0x4a4f('0x9')],'include':[{'model':'DeskField','as':_0x4a4f('0xa'),'attributes':['id',_0x4a4f('0x6'),_0x4a4f('0xb'),_0x4a4f('0xc')],'include':[{'model':_0x4a4f('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':_0x4a4f('0xe'),'as':'Descriptions','attributes':['id',_0x4a4f('0x6'),_0x4a4f('0xb'),_0x4a4f('0xf'),_0x4a4f('0x10'),_0x4a4f('0x11'),_0x4a4f('0xc')],'include':[{'model':_0x4a4f('0xd'),'as':_0x4a4f('0xd'),'attributes':['id','name']}]},{'model':_0x4a4f('0xe'),'as':_0x4a4f('0x12'),'attributes':['id','type',_0x4a4f('0xb'),_0x4a4f('0x13'),_0x4a4f('0x14'),'customField',_0x4a4f('0xc')],'include':[{'model':_0x4a4f('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':_0x4a4f('0x15'),'as':_0x4a4f('0x16'),'attributes':['id','name']}]}]},'log':_0x4a4f('0x17')});};};