f4f619a1e3f70b372d81847fbd228796b315ca32
[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 _0x737b=['customField','Tag','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','remoteUri','type','DeskConfiguration','Configurations','DeskField','Subjects','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField'];(function(_0x29845f,_0x35779d){var _0x2d1a63=function(_0x15e68c){while(--_0x15e68c){_0x29845f['push'](_0x29845f['shift']());}};_0x2d1a63(++_0x35779d);}(_0x737b,0xc2));var _0xb737=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x737b[_0x3dd15e];return _0x231fd0;};'use strict';var client=require(_0xb737('0x0'));exports[_0xb737('0x1')]=function(){return function(_0x927862){return client[_0xb737('0x2')](_0xb737('0x3'),{'options':{'raw':![],'attributes':['id',_0xb737('0x4'),_0xb737('0x5'),'username','password',_0xb737('0x6'),'authType',_0xb737('0x7'),'serverUrl'],'include':[{'model':_0xb737('0x8'),'as':_0xb737('0x9'),'attributes':['id',_0xb737('0x4')],'include':[{'model':_0xb737('0xa'),'as':_0xb737('0xb'),'attributes':['id',_0xb737('0x7'),_0xb737('0xc'),_0xb737('0xd')],'include':[{'model':_0xb737('0xe'),'as':_0xb737('0xe'),'attributes':['id',_0xb737('0x4')]}]},{'model':_0xb737('0xa'),'as':_0xb737('0xf'),'attributes':['id',_0xb737('0x7'),_0xb737('0xc'),_0xb737('0x10'),_0xb737('0x11'),_0xb737('0x12'),_0xb737('0xd')],'include':[{'model':_0xb737('0xe'),'as':_0xb737('0xe'),'attributes':['id',_0xb737('0x4')]}]},{'model':_0xb737('0xa'),'as':_0xb737('0x13'),'attributes':['id',_0xb737('0x7'),_0xb737('0xc'),_0xb737('0x14'),_0xb737('0x15'),_0xb737('0x16'),_0xb737('0xd')],'include':[{'model':'Variable','as':_0xb737('0xe'),'attributes':['id',_0xb737('0x4')]}]},{'model':_0xb737('0x17'),'as':'Tags','attributes':['id',_0xb737('0x4')]}]}]},'log':_0xb737('0x3')});};};