Built motion from commit 1fd437e9.|2.6.19
[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 _0x3453=['Variable','Descriptions','key','keyContent','Fields','idField','customField','variableName','Tag','Tags','GetDeskAccount','../../client','getDeskAccounts','Request','name','username','password','type','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','content'];(function(_0x15b1fa,_0x452fe5){var _0xd548d3=function(_0x17bb7a){while(--_0x17bb7a){_0x15b1fa['push'](_0x15b1fa['shift']());}};_0xd548d3(++_0x452fe5);}(_0x3453,0xb3));var _0x3345=function(_0x522b97,_0x5bea1c){_0x522b97=_0x522b97-0x0;var _0x115fa1=_0x3453[_0x522b97];return _0x115fa1;};'use strict';var client=require(_0x3345('0x0'));exports[_0x3345('0x1')]=function(){return function(_0x1586f){return client[_0x3345('0x2')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0x3345('0x3'),'description',_0x3345('0x4'),_0x3345('0x5'),'remoteUri','authType',_0x3345('0x6'),_0x3345('0x7')],'include':[{'model':_0x3345('0x8'),'as':_0x3345('0x9'),'attributes':['id',_0x3345('0x3')],'include':[{'model':_0x3345('0xa'),'as':_0x3345('0xb'),'attributes':['id','type',_0x3345('0xc'),'variableName'],'include':[{'model':_0x3345('0xd'),'as':_0x3345('0xd'),'attributes':['id',_0x3345('0x3')]}]},{'model':_0x3345('0xa'),'as':_0x3345('0xe'),'attributes':['id',_0x3345('0x6'),_0x3345('0xc'),_0x3345('0xf'),'keyType',_0x3345('0x10'),'variableName'],'include':[{'model':_0x3345('0xd'),'as':_0x3345('0xd'),'attributes':['id',_0x3345('0x3')]}]},{'model':_0x3345('0xa'),'as':_0x3345('0x11'),'attributes':['id',_0x3345('0x6'),_0x3345('0xc'),_0x3345('0x12'),'nameField',_0x3345('0x13'),_0x3345('0x14')],'include':[{'model':_0x3345('0xd'),'as':_0x3345('0xd'),'attributes':['id',_0x3345('0x3')]}]},{'model':_0x3345('0x15'),'as':_0x3345('0x16'),'attributes':['id',_0x3345('0x3')]}]}]},'log':_0x3345('0x17')});};};