78b3d9afdadfaf16be344fa5620d33aca83f6d7b
[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 _0x6e0d=['content','variableName','Descriptions','keyType','Variable','Fields','idField','Tag','Tags','../../client','getDeskAccounts','GetDeskAccount','name','description','username','password','remoteUri','type','serverUrl','DeskConfiguration','Configurations','DeskField'];(function(_0x2839d6,_0x276556){var _0xda468e=function(_0xeda067){while(--_0xeda067){_0x2839d6['push'](_0x2839d6['shift']());}};_0xda468e(++_0x276556);}(_0x6e0d,0x1ab));var _0xd6e0=function(_0x237e0c,_0x210e9f){_0x237e0c=_0x237e0c-0x0;var _0x3e0475=_0x6e0d[_0x237e0c];return _0x3e0475;};'use strict';var client=require(_0xd6e0('0x0'));exports[_0xd6e0('0x1')]=function(){return function(_0x1d9271){return client['Request'](_0xd6e0('0x2'),{'options':{'raw':![],'attributes':['id',_0xd6e0('0x3'),_0xd6e0('0x4'),_0xd6e0('0x5'),_0xd6e0('0x6'),_0xd6e0('0x7'),'authType',_0xd6e0('0x8'),_0xd6e0('0x9')],'include':[{'model':_0xd6e0('0xa'),'as':_0xd6e0('0xb'),'attributes':['id',_0xd6e0('0x3')],'include':[{'model':_0xd6e0('0xc'),'as':'Subjects','attributes':['id','type',_0xd6e0('0xd'),_0xd6e0('0xe')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xd6e0('0x3')]}]},{'model':_0xd6e0('0xc'),'as':_0xd6e0('0xf'),'attributes':['id','type',_0xd6e0('0xd'),'key',_0xd6e0('0x10'),'keyContent','variableName'],'include':[{'model':'Variable','as':_0xd6e0('0x11'),'attributes':['id',_0xd6e0('0x3')]}]},{'model':'DeskField','as':_0xd6e0('0x12'),'attributes':['id',_0xd6e0('0x8'),_0xd6e0('0xd'),_0xd6e0('0x13'),'nameField','customField','variableName'],'include':[{'model':_0xd6e0('0x11'),'as':_0xd6e0('0x11'),'attributes':['id',_0xd6e0('0x3')]}]},{'model':_0xd6e0('0x14'),'as':_0xd6e0('0x15'),'attributes':['id',_0xd6e0('0x3')]}]}]},'log':_0xd6e0('0x2')});};};