f0561d20369813623acfd04530b787d95cc27697
[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 _0xf570=['../../client','getDeskAccounts','GetDeskAccount','username','password','remoteUri','serverUrl','DeskConfiguration','name','DeskField','Subjects','type','content','variableName','key','Variable','Fields','nameField','Tag','Tags'];(function(_0x530d08,_0x5b4dad){var _0x45674d=function(_0x4c1c3d){while(--_0x4c1c3d){_0x530d08['push'](_0x530d08['shift']());}};_0x45674d(++_0x5b4dad);}(_0xf570,0x140));var _0x0f57=function(_0xa3aadd,_0x3e5de5){_0xa3aadd=_0xa3aadd-0x0;var _0x264e23=_0xf570[_0xa3aadd];return _0x264e23;};'use strict';var client=require(_0x0f57('0x0'));exports[_0x0f57('0x1')]=function(){return function(_0x149b16){return client['Request'](_0x0f57('0x2'),{'options':{'raw':![],'attributes':['id','name','description',_0x0f57('0x3'),_0x0f57('0x4'),_0x0f57('0x5'),'authType','type',_0x0f57('0x6')],'include':[{'model':_0x0f57('0x7'),'as':'Configurations','attributes':['id',_0x0f57('0x8')],'include':[{'model':_0x0f57('0x9'),'as':_0x0f57('0xa'),'attributes':['id',_0x0f57('0xb'),_0x0f57('0xc'),_0x0f57('0xd')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x0f57('0x8')]}]},{'model':_0x0f57('0x9'),'as':'Descriptions','attributes':['id',_0x0f57('0xb'),'content',_0x0f57('0xe'),'keyType','keyContent',_0x0f57('0xd')],'include':[{'model':_0x0f57('0xf'),'as':_0x0f57('0xf'),'attributes':['id',_0x0f57('0x8')]}]},{'model':_0x0f57('0x9'),'as':_0x0f57('0x10'),'attributes':['id',_0x0f57('0xb'),'content','idField',_0x0f57('0x11'),'customField',_0x0f57('0xd')],'include':[{'model':_0x0f57('0xf'),'as':_0x0f57('0xf'),'attributes':['id',_0x0f57('0x8')]}]},{'model':_0x0f57('0x12'),'as':_0x0f57('0x13'),'attributes':['id',_0x0f57('0x8')]}]}]},'log':_0x0f57('0x2')});};};