0b49e3d750dbf669c730114623b061d30bf9c859
[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 _0x36f4=['nameField','customField','Tags','GetDeskAccount','getDeskAccounts','description','username','remoteUri','type','serverUrl','DeskConfiguration','Configurations','name','variableName','Variable','DeskField','Descriptions','content','keyType','keyContent','Fields'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0x36f4,0xc1));var _0x436f=function(_0x356cb2,_0x30afb6){_0x356cb2=_0x356cb2-0x0;var _0x2807f7=_0x36f4[_0x356cb2];return _0x2807f7;};'use strict';var client=require('../../client');exports[_0x436f('0x0')]=function(){return function(_0x594f04){return client['Request']('GetDeskAccount',{'options':{'raw':![],'attributes':['id','name',_0x436f('0x1'),_0x436f('0x2'),'password',_0x436f('0x3'),'authType',_0x436f('0x4'),_0x436f('0x5')],'include':[{'model':_0x436f('0x6'),'as':_0x436f('0x7'),'attributes':['id',_0x436f('0x8')],'include':[{'model':'DeskField','as':'Subjects','attributes':['id',_0x436f('0x4'),'content',_0x436f('0x9')],'include':[{'model':_0x436f('0xa'),'as':_0x436f('0xa'),'attributes':['id',_0x436f('0x8')]}]},{'model':_0x436f('0xb'),'as':_0x436f('0xc'),'attributes':['id',_0x436f('0x4'),_0x436f('0xd'),'key',_0x436f('0xe'),_0x436f('0xf'),'variableName'],'include':[{'model':_0x436f('0xa'),'as':_0x436f('0xa'),'attributes':['id','name']}]},{'model':_0x436f('0xb'),'as':_0x436f('0x10'),'attributes':['id',_0x436f('0x4'),'content','idField',_0x436f('0x11'),_0x436f('0x12'),'variableName'],'include':[{'model':_0x436f('0xa'),'as':'Variable','attributes':['id',_0x436f('0x8')]}]},{'model':'Tag','as':_0x436f('0x13'),'attributes':['id',_0x436f('0x8')]}]}]},'log':_0x436f('0x14')});};};