88b924e9951055394cdfaaa71f04b3279f7055aa
[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 _0x4f27=['name','DeskField','Subjects','content','Variable','key','keyType','keyContent','variableName','idField','nameField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','description','username','password','remoteUri','authType','type','serverUrl','DeskConfiguration'];(function(_0x2e41e2,_0x4e7250){var _0x2844d6=function(_0x28ce24){while(--_0x28ce24){_0x2e41e2['push'](_0x2e41e2['shift']());}};_0x2844d6(++_0x4e7250);}(_0x4f27,0x120));var _0x74f2=function(_0x2dd26e,_0x2c11dc){_0x2dd26e=_0x2dd26e-0x0;var _0x5ca2bf=_0x4f27[_0x2dd26e];return _0x5ca2bf;};'use strict';var client=require(_0x74f2('0x0'));exports[_0x74f2('0x1')]=function(){return function(_0x3a9423){return client[_0x74f2('0x2')](_0x74f2('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x74f2('0x4'),_0x74f2('0x5'),_0x74f2('0x6'),_0x74f2('0x7'),_0x74f2('0x8'),_0x74f2('0x9'),_0x74f2('0xa')],'include':[{'model':_0x74f2('0xb'),'as':'Configurations','attributes':['id',_0x74f2('0xc')],'include':[{'model':_0x74f2('0xd'),'as':_0x74f2('0xe'),'attributes':['id',_0x74f2('0x9'),_0x74f2('0xf'),'variableName'],'include':[{'model':_0x74f2('0x10'),'as':_0x74f2('0x10'),'attributes':['id',_0x74f2('0xc')]}]},{'model':_0x74f2('0xd'),'as':'Descriptions','attributes':['id',_0x74f2('0x9'),_0x74f2('0xf'),_0x74f2('0x11'),_0x74f2('0x12'),_0x74f2('0x13'),_0x74f2('0x14')],'include':[{'model':_0x74f2('0x10'),'as':_0x74f2('0x10'),'attributes':['id','name']}]},{'model':_0x74f2('0xd'),'as':'Fields','attributes':['id',_0x74f2('0x9'),_0x74f2('0xf'),_0x74f2('0x15'),_0x74f2('0x16'),'customField','variableName'],'include':[{'model':_0x74f2('0x10'),'as':_0x74f2('0x10'),'attributes':['id',_0x74f2('0xc')]}]},{'model':_0x74f2('0x17'),'as':_0x74f2('0x18'),'attributes':['id',_0x74f2('0xc')]}]}]},'log':_0x74f2('0x3')});};};