d526a2f2bcd4b709c9fe03f02b343ac6808a4e2c
[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 _0x465b=['Fields','idField','customField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','password','remoteUri','authType','type','DeskField','Subjects','content','variableName','Variable','key','keyType','keyContent'];(function(_0xa2302e,_0xba0a3f){var _0x2c260f=function(_0x5ed862){while(--_0x5ed862){_0xa2302e['push'](_0xa2302e['shift']());}};_0x2c260f(++_0xba0a3f);}(_0x465b,0xa6));var _0xb465=function(_0x5b20ee,_0x223ce2){_0x5b20ee=_0x5b20ee-0x0;var _0x5a2edf=_0x465b[_0x5b20ee];return _0x5a2edf;};'use strict';var client=require(_0xb465('0x0'));exports[_0xb465('0x1')]=function(){return function(_0x168e87){return client[_0xb465('0x2')](_0xb465('0x3'),{'options':{'raw':![],'attributes':['id',_0xb465('0x4'),_0xb465('0x5'),'username',_0xb465('0x6'),_0xb465('0x7'),_0xb465('0x8'),_0xb465('0x9'),'serverUrl'],'include':[{'model':'DeskConfiguration','as':'Configurations','attributes':['id',_0xb465('0x4')],'include':[{'model':_0xb465('0xa'),'as':_0xb465('0xb'),'attributes':['id',_0xb465('0x9'),_0xb465('0xc'),_0xb465('0xd')],'include':[{'model':_0xb465('0xe'),'as':_0xb465('0xe'),'attributes':['id',_0xb465('0x4')]}]},{'model':_0xb465('0xa'),'as':'Descriptions','attributes':['id',_0xb465('0x9'),_0xb465('0xc'),_0xb465('0xf'),_0xb465('0x10'),_0xb465('0x11'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xb465('0x4')]}]},{'model':_0xb465('0xa'),'as':_0xb465('0x12'),'attributes':['id',_0xb465('0x9'),_0xb465('0xc'),_0xb465('0x13'),'nameField',_0xb465('0x14'),_0xb465('0xd')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xb465('0x4')]}]},{'model':_0xb465('0x15'),'as':_0xb465('0x16'),'attributes':['id',_0xb465('0x4')]}]}]},'log':'GetDeskAccount'});};};