Built motion from commit 85328c08.|2.5.50
[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 _0xfb17=['customField','Tags','../../client','getDeskAccounts','GetDeskAccount','name','password','authType','serverUrl','DeskConfiguration','DeskField','Subjects','type','variableName','Variable','Descriptions','content','key','keyType','keyContent','idField','nameField'];(function(_0x59523b,_0x73404e){var _0x5c4c7b=function(_0x105f42){while(--_0x105f42){_0x59523b['push'](_0x59523b['shift']());}};_0x5c4c7b(++_0x73404e);}(_0xfb17,0x70));var _0x7fb1=function(_0x1d24eb,_0x12295b){_0x1d24eb=_0x1d24eb-0x0;var _0x1dc576=_0xfb17[_0x1d24eb];return _0x1dc576;};'use strict';var client=require(_0x7fb1('0x0'));exports[_0x7fb1('0x1')]=function(){return function(_0x500200){return client['Request'](_0x7fb1('0x2'),{'options':{'raw':![],'attributes':['id',_0x7fb1('0x3'),'description','username',_0x7fb1('0x4'),'remoteUri',_0x7fb1('0x5'),'type',_0x7fb1('0x6')],'include':[{'model':_0x7fb1('0x7'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0x7fb1('0x8'),'as':_0x7fb1('0x9'),'attributes':['id',_0x7fb1('0xa'),'content',_0x7fb1('0xb')],'include':[{'model':_0x7fb1('0xc'),'as':'Variable','attributes':['id',_0x7fb1('0x3')]}]},{'model':_0x7fb1('0x8'),'as':_0x7fb1('0xd'),'attributes':['id','type',_0x7fb1('0xe'),_0x7fb1('0xf'),_0x7fb1('0x10'),_0x7fb1('0x11'),_0x7fb1('0xb')],'include':[{'model':_0x7fb1('0xc'),'as':'Variable','attributes':['id','name']}]},{'model':_0x7fb1('0x8'),'as':'Fields','attributes':['id',_0x7fb1('0xa'),'content',_0x7fb1('0x12'),_0x7fb1('0x13'),_0x7fb1('0x14'),_0x7fb1('0xb')],'include':[{'model':_0x7fb1('0xc'),'as':_0x7fb1('0xc'),'attributes':['id','name']}]},{'model':'Tag','as':_0x7fb1('0x15'),'attributes':['id',_0x7fb1('0x3')]}]}]},'log':'GetDeskAccount'});};};