bf268f78ed08c0c3a2ce36f6e44c860b3b4b3063
[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 _0x9850=['customField','Tag','Tags','../../client','Request','GetDeskAccount','name','description','remoteUri','type','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','variableName','Variable','content','keyType','idField','nameField'];(function(_0x1ee44b,_0x395dd5){var _0x5a41b0=function(_0xfc600){while(--_0xfc600){_0x1ee44b['push'](_0x1ee44b['shift']());}};_0x5a41b0(++_0x395dd5);}(_0x9850,0x81));var _0x0985=function(_0x13d499,_0x289fad){_0x13d499=_0x13d499-0x0;var _0x505bf1=_0x9850[_0x13d499];return _0x505bf1;};'use strict';var client=require(_0x0985('0x0'));exports['getDeskAccounts']=function(){return function(_0x41fddf){return client[_0x0985('0x1')](_0x0985('0x2'),{'options':{'raw':![],'attributes':['id',_0x0985('0x3'),_0x0985('0x4'),'username','password',_0x0985('0x5'),'authType',_0x0985('0x6'),_0x0985('0x7')],'include':[{'model':_0x0985('0x8'),'as':_0x0985('0x9'),'attributes':['id',_0x0985('0x3')],'include':[{'model':_0x0985('0xa'),'as':_0x0985('0xb'),'attributes':['id','type','content',_0x0985('0xc')],'include':[{'model':_0x0985('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':_0x0985('0xa'),'as':'Descriptions','attributes':['id','type',_0x0985('0xe'),'key',_0x0985('0xf'),'keyContent','variableName'],'include':[{'model':_0x0985('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':_0x0985('0xa'),'as':'Fields','attributes':['id','type',_0x0985('0xe'),_0x0985('0x10'),_0x0985('0x11'),_0x0985('0x12'),_0x0985('0xc')],'include':[{'model':_0x0985('0xd'),'as':'Variable','attributes':['id',_0x0985('0x3')]}]},{'model':_0x0985('0x13'),'as':_0x0985('0x14'),'attributes':['id',_0x0985('0x3')]}]}]},'log':'GetDeskAccount'});};};