58daf0c0c07a294b1df744319d3f549f7aada14c
[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 _0x799b=['variableName','idField','nameField','customField','Tag','Tags','getDeskAccounts','Request','GetDeskAccount','description','username','type','serverUrl','DeskConfiguration','Configurations','name','DeskField','Subjects','content','Variable','Descriptions','key','keyType','keyContent'];(function(_0x10f68e,_0xf198ea){var _0x4c8372=function(_0x38517){while(--_0x38517){_0x10f68e['push'](_0x10f68e['shift']());}};_0x4c8372(++_0xf198ea);}(_0x799b,0xde));var _0xb799=function(_0xe825d3,_0x494080){_0xe825d3=_0xe825d3-0x0;var _0x14562f=_0x799b[_0xe825d3];return _0x14562f;};'use strict';var client=require('../../client');exports[_0xb799('0x0')]=function(){return function(_0x46ef49){return client[_0xb799('0x1')](_0xb799('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xb799('0x3'),_0xb799('0x4'),'password','remoteUri','authType',_0xb799('0x5'),_0xb799('0x6')],'include':[{'model':_0xb799('0x7'),'as':_0xb799('0x8'),'attributes':['id',_0xb799('0x9')],'include':[{'model':_0xb799('0xa'),'as':_0xb799('0xb'),'attributes':['id',_0xb799('0x5'),_0xb799('0xc'),'variableName'],'include':[{'model':_0xb799('0xd'),'as':_0xb799('0xd'),'attributes':['id','name']}]},{'model':_0xb799('0xa'),'as':_0xb799('0xe'),'attributes':['id',_0xb799('0x5'),_0xb799('0xc'),_0xb799('0xf'),_0xb799('0x10'),_0xb799('0x11'),_0xb799('0x12')],'include':[{'model':_0xb799('0xd'),'as':_0xb799('0xd'),'attributes':['id',_0xb799('0x9')]}]},{'model':_0xb799('0xa'),'as':'Fields','attributes':['id',_0xb799('0x5'),_0xb799('0xc'),_0xb799('0x13'),_0xb799('0x14'),_0xb799('0x15'),'variableName'],'include':[{'model':_0xb799('0xd'),'as':_0xb799('0xd'),'attributes':['id',_0xb799('0x9')]}]},{'model':_0xb799('0x16'),'as':_0xb799('0x17'),'attributes':['id',_0xb799('0x9')]}]}]},'log':_0xb799('0x2')});};};