01c63cb6f7635c602fd65f7fabc5ddb3e9763f51
[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 _0x7759=['DeskConfiguration','Configurations','DeskField','content','variableName','Variable','Descriptions','keyType','keyContent','nameField','customField','Tag','../../client','getDeskAccounts','GetDeskAccount','name','description','password','remoteUri','authType','type','serverUrl'];(function(_0x2ccc78,_0x345772){var _0x1cd966=function(_0x20da90){while(--_0x20da90){_0x2ccc78['push'](_0x2ccc78['shift']());}};_0x1cd966(++_0x345772);}(_0x7759,0x1c4));var _0x9775=function(_0x28ac17,_0x5936d0){_0x28ac17=_0x28ac17-0x0;var _0x5ec09d=_0x7759[_0x28ac17];return _0x5ec09d;};'use strict';var client=require(_0x9775('0x0'));exports[_0x9775('0x1')]=function(){return function(_0x3b2432){return client['Request'](_0x9775('0x2'),{'options':{'raw':![],'attributes':['id',_0x9775('0x3'),_0x9775('0x4'),'username',_0x9775('0x5'),_0x9775('0x6'),_0x9775('0x7'),_0x9775('0x8'),_0x9775('0x9')],'include':[{'model':_0x9775('0xa'),'as':_0x9775('0xb'),'attributes':['id',_0x9775('0x3')],'include':[{'model':_0x9775('0xc'),'as':'Subjects','attributes':['id','type',_0x9775('0xd'),_0x9775('0xe')],'include':[{'model':_0x9775('0xf'),'as':_0x9775('0xf'),'attributes':['id',_0x9775('0x3')]}]},{'model':_0x9775('0xc'),'as':_0x9775('0x10'),'attributes':['id',_0x9775('0x8'),'content','key',_0x9775('0x11'),_0x9775('0x12'),'variableName'],'include':[{'model':_0x9775('0xf'),'as':_0x9775('0xf'),'attributes':['id',_0x9775('0x3')]}]},{'model':_0x9775('0xc'),'as':'Fields','attributes':['id',_0x9775('0x8'),_0x9775('0xd'),'idField',_0x9775('0x13'),_0x9775('0x14'),_0x9775('0xe')],'include':[{'model':'Variable','as':_0x9775('0xf'),'attributes':['id','name']}]},{'model':_0x9775('0x15'),'as':'Tags','attributes':['id','name']}]}]},'log':'GetDeskAccount'});};};