Built motion from commit (unavailable).|2.5.14
[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 _0xdd9f=['key','content','idField','nameField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','username','remoteUri','authType','DeskConfiguration','DeskField','Subjects','type','variableName','Variable','Descriptions'];(function(_0x432682,_0x253044){var _0x463d05=function(_0xa73403){while(--_0xa73403){_0x432682['push'](_0x432682['shift']());}};_0x463d05(++_0x253044);}(_0xdd9f,0x8a));var _0xfdd9=function(_0x132d12,_0x2c9799){_0x132d12=_0x132d12-0x0;var _0x1c3163=_0xdd9f[_0x132d12];return _0x1c3163;};'use strict';var client=require(_0xfdd9('0x0'));exports[_0xfdd9('0x1')]=function(){return function(_0x5a3d56){return client[_0xfdd9('0x2')](_0xfdd9('0x3'),{'options':{'raw':![],'attributes':['id',_0xfdd9('0x4'),_0xfdd9('0x5'),_0xfdd9('0x6'),'password',_0xfdd9('0x7'),_0xfdd9('0x8'),'type','serverUrl'],'include':[{'model':_0xfdd9('0x9'),'as':'Configurations','attributes':['id',_0xfdd9('0x4')],'include':[{'model':_0xfdd9('0xa'),'as':_0xfdd9('0xb'),'attributes':['id',_0xfdd9('0xc'),'content',_0xfdd9('0xd')],'include':[{'model':_0xfdd9('0xe'),'as':'Variable','attributes':['id',_0xfdd9('0x4')]}]},{'model':_0xfdd9('0xa'),'as':_0xfdd9('0xf'),'attributes':['id',_0xfdd9('0xc'),'content',_0xfdd9('0x10'),'keyType','keyContent',_0xfdd9('0xd')],'include':[{'model':_0xfdd9('0xe'),'as':'Variable','attributes':['id',_0xfdd9('0x4')]}]},{'model':_0xfdd9('0xa'),'as':'Fields','attributes':['id',_0xfdd9('0xc'),_0xfdd9('0x11'),_0xfdd9('0x12'),_0xfdd9('0x13'),'customField','variableName'],'include':[{'model':_0xfdd9('0xe'),'as':_0xfdd9('0xe'),'attributes':['id',_0xfdd9('0x4')]}]},{'model':_0xfdd9('0x14'),'as':_0xfdd9('0x15'),'attributes':['id',_0xfdd9('0x4')]}]}]},'log':'GetDeskAccount'});};};