b04f250aeb4b22a779e13e2b6362974dba8563ff
[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 _0xdf89=['Request','name','description','password','remoteUri','authType','type','DeskConfiguration','DeskField','Subjects','content','variableName','Variable','Descriptions','key','keyType','Fields','idField','Tag','Tags','GetDeskAccount','../../client','getDeskAccounts'];(function(_0x5c2d65,_0x3d528c){var _0x2c3b85=function(_0x480eeb){while(--_0x480eeb){_0x5c2d65['push'](_0x5c2d65['shift']());}};_0x2c3b85(++_0x3d528c);}(_0xdf89,0x19c));var _0x9df8=function(_0x1ed128,_0x36e754){_0x1ed128=_0x1ed128-0x0;var _0x537832=_0xdf89[_0x1ed128];return _0x537832;};'use strict';var client=require(_0x9df8('0x0'));exports[_0x9df8('0x1')]=function(){return function(_0x55e2ce){return client[_0x9df8('0x2')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0x9df8('0x3'),_0x9df8('0x4'),'username',_0x9df8('0x5'),_0x9df8('0x6'),_0x9df8('0x7'),_0x9df8('0x8'),'serverUrl'],'include':[{'model':_0x9df8('0x9'),'as':'Configurations','attributes':['id',_0x9df8('0x3')],'include':[{'model':_0x9df8('0xa'),'as':_0x9df8('0xb'),'attributes':['id',_0x9df8('0x8'),_0x9df8('0xc'),_0x9df8('0xd')],'include':[{'model':_0x9df8('0xe'),'as':_0x9df8('0xe'),'attributes':['id','name']}]},{'model':_0x9df8('0xa'),'as':_0x9df8('0xf'),'attributes':['id','type',_0x9df8('0xc'),_0x9df8('0x10'),_0x9df8('0x11'),'keyContent',_0x9df8('0xd')],'include':[{'model':_0x9df8('0xe'),'as':'Variable','attributes':['id',_0x9df8('0x3')]}]},{'model':_0x9df8('0xa'),'as':_0x9df8('0x12'),'attributes':['id','type',_0x9df8('0xc'),_0x9df8('0x13'),'nameField','customField',_0x9df8('0xd')],'include':[{'model':_0x9df8('0xe'),'as':_0x9df8('0xe'),'attributes':['id',_0x9df8('0x3')]}]},{'model':_0x9df8('0x14'),'as':_0x9df8('0x15'),'attributes':['id',_0x9df8('0x3')]}]}]},'log':_0x9df8('0x16')});};};