3116ce4081afeedc0adde341fa2a1bccbb4a243c
[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 _0x2c96=['type','content','variableName','Variable','key','keyType','keyContent','idField','customField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','username','password','authType','DeskConfiguration','DeskField','Subjects'];(function(_0x1812e9,_0x558882){var _0x40b0c0=function(_0x5b8014){while(--_0x5b8014){_0x1812e9['push'](_0x1812e9['shift']());}};_0x40b0c0(++_0x558882);}(_0x2c96,0x1c0));var _0x62c9=function(_0x45a74f,_0x12773e){_0x45a74f=_0x45a74f-0x0;var _0xc2559f=_0x2c96[_0x45a74f];return _0xc2559f;};'use strict';var client=require(_0x62c9('0x0'));exports[_0x62c9('0x1')]=function(){return function(_0x4df90e){return client[_0x62c9('0x2')](_0x62c9('0x3'),{'options':{'raw':![],'attributes':['id',_0x62c9('0x4'),_0x62c9('0x5'),_0x62c9('0x6'),_0x62c9('0x7'),'remoteUri',_0x62c9('0x8'),'type','serverUrl'],'include':[{'model':_0x62c9('0x9'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0x62c9('0xa'),'as':_0x62c9('0xb'),'attributes':['id',_0x62c9('0xc'),_0x62c9('0xd'),_0x62c9('0xe')],'include':[{'model':'Variable','as':_0x62c9('0xf'),'attributes':['id',_0x62c9('0x4')]}]},{'model':_0x62c9('0xa'),'as':'Descriptions','attributes':['id',_0x62c9('0xc'),'content',_0x62c9('0x10'),_0x62c9('0x11'),_0x62c9('0x12'),'variableName'],'include':[{'model':_0x62c9('0xf'),'as':_0x62c9('0xf'),'attributes':['id',_0x62c9('0x4')]}]},{'model':_0x62c9('0xa'),'as':'Fields','attributes':['id',_0x62c9('0xc'),'content',_0x62c9('0x13'),'nameField',_0x62c9('0x14'),_0x62c9('0xe')],'include':[{'model':_0x62c9('0xf'),'as':'Variable','attributes':['id',_0x62c9('0x4')]}]},{'model':_0x62c9('0x15'),'as':_0x62c9('0x16'),'attributes':['id',_0x62c9('0x4')]}]}]},'log':'GetDeskAccount'});};};