dc7358267cd86159a4d872b0924784ade8f3d7cc
[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 _0xf2fe=['customField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','remoteUri','authType','type','serverUrl','DeskField','Subjects','content','variableName','Variable','key','keyType','keyContent','Fields','nameField'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0xf2fe,0x117));var _0xef2f=function(_0x4ea9dc,_0x5dff26){_0x4ea9dc=_0x4ea9dc-0x0;var _0x1c8603=_0xf2fe[_0x4ea9dc];return _0x1c8603;};'use strict';var client=require(_0xef2f('0x0'));exports[_0xef2f('0x1')]=function(){return function(_0x555e86){return client[_0xef2f('0x2')](_0xef2f('0x3'),{'options':{'raw':![],'attributes':['id',_0xef2f('0x4'),_0xef2f('0x5'),'username','password',_0xef2f('0x6'),_0xef2f('0x7'),_0xef2f('0x8'),_0xef2f('0x9')],'include':[{'model':'DeskConfiguration','as':'Configurations','attributes':['id',_0xef2f('0x4')],'include':[{'model':_0xef2f('0xa'),'as':_0xef2f('0xb'),'attributes':['id','type',_0xef2f('0xc'),_0xef2f('0xd')],'include':[{'model':'Variable','as':_0xef2f('0xe'),'attributes':['id','name']}]},{'model':_0xef2f('0xa'),'as':'Descriptions','attributes':['id',_0xef2f('0x8'),_0xef2f('0xc'),_0xef2f('0xf'),_0xef2f('0x10'),_0xef2f('0x11'),_0xef2f('0xd')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xef2f('0x4')]}]},{'model':_0xef2f('0xa'),'as':_0xef2f('0x12'),'attributes':['id',_0xef2f('0x8'),_0xef2f('0xc'),'idField',_0xef2f('0x13'),_0xef2f('0x14'),_0xef2f('0xd')],'include':[{'model':_0xef2f('0xe'),'as':_0xef2f('0xe'),'attributes':['id',_0xef2f('0x4')]}]},{'model':_0xef2f('0x15'),'as':_0xef2f('0x16'),'attributes':['id',_0xef2f('0x4')]}]}]},'log':_0xef2f('0x3')});};};