Built motion from commit d5e4af8c.|2.6.23
[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 _0x27ae=['content','Descriptions','key','keyType','keyContent','Variable','Fields','idField','nameField','variableName','Tag','Tags','../../client','getDeskAccounts','GetDeskAccount','name','description','password','remoteUri','authType','type','serverUrl','DeskConfiguration','Configurations','DeskField'];(function(_0x39ca7c,_0x242024){var _0x2bd4d5=function(_0x1ea738){while(--_0x1ea738){_0x39ca7c['push'](_0x39ca7c['shift']());}};_0x2bd4d5(++_0x242024);}(_0x27ae,0x183));var _0xe27a=function(_0x548e1d,_0x3534d3){_0x548e1d=_0x548e1d-0x0;var _0x398584=_0x27ae[_0x548e1d];return _0x398584;};'use strict';var client=require(_0xe27a('0x0'));exports[_0xe27a('0x1')]=function(){return function(_0x206af5){return client['Request'](_0xe27a('0x2'),{'options':{'raw':![],'attributes':['id',_0xe27a('0x3'),_0xe27a('0x4'),'username',_0xe27a('0x5'),_0xe27a('0x6'),_0xe27a('0x7'),_0xe27a('0x8'),_0xe27a('0x9')],'include':[{'model':_0xe27a('0xa'),'as':_0xe27a('0xb'),'attributes':['id',_0xe27a('0x3')],'include':[{'model':_0xe27a('0xc'),'as':'Subjects','attributes':['id',_0xe27a('0x8'),_0xe27a('0xd'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xe27a('0x3')]}]},{'model':'DeskField','as':_0xe27a('0xe'),'attributes':['id',_0xe27a('0x8'),'content',_0xe27a('0xf'),_0xe27a('0x10'),_0xe27a('0x11'),'variableName'],'include':[{'model':_0xe27a('0x12'),'as':_0xe27a('0x12'),'attributes':['id',_0xe27a('0x3')]}]},{'model':_0xe27a('0xc'),'as':_0xe27a('0x13'),'attributes':['id',_0xe27a('0x8'),_0xe27a('0xd'),_0xe27a('0x14'),_0xe27a('0x15'),'customField',_0xe27a('0x16')],'include':[{'model':'Variable','as':_0xe27a('0x12'),'attributes':['id',_0xe27a('0x3')]}]},{'model':_0xe27a('0x17'),'as':_0xe27a('0x18'),'attributes':['id',_0xe27a('0x3')]}]}]},'log':_0xe27a('0x2')});};};