4e8348edf49a82c11855ec8cba741bf85568b583
[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 _0xd56a=['DeskConfiguration','DeskField','Subjects','content','key','keyType','keyContent','variableName','Variable','Fields','nameField','customField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','type'];(function(_0x54913c,_0x43360b){var _0x178367=function(_0x38320a){while(--_0x38320a){_0x54913c['push'](_0x54913c['shift']());}};_0x178367(++_0x43360b);}(_0xd56a,0xf5));var _0xad56=function(_0x384dd3,_0x2221e3){_0x384dd3=_0x384dd3-0x0;var _0x1ef7c4=_0xd56a[_0x384dd3];return _0x1ef7c4;};'use strict';var client=require(_0xad56('0x0'));exports[_0xad56('0x1')]=function(){return function(_0x18d24b){return client[_0xad56('0x2')](_0xad56('0x3'),{'options':{'raw':![],'attributes':['id',_0xad56('0x4'),_0xad56('0x5'),'username','password','remoteUri','authType',_0xad56('0x6'),'serverUrl'],'include':[{'model':_0xad56('0x7'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0xad56('0x8'),'as':_0xad56('0x9'),'attributes':['id',_0xad56('0x6'),_0xad56('0xa'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xad56('0x4')]}]},{'model':_0xad56('0x8'),'as':'Descriptions','attributes':['id',_0xad56('0x6'),_0xad56('0xa'),_0xad56('0xb'),_0xad56('0xc'),_0xad56('0xd'),_0xad56('0xe')],'include':[{'model':_0xad56('0xf'),'as':_0xad56('0xf'),'attributes':['id',_0xad56('0x4')]}]},{'model':'DeskField','as':_0xad56('0x10'),'attributes':['id','type',_0xad56('0xa'),'idField',_0xad56('0x11'),_0xad56('0x12'),_0xad56('0xe')],'include':[{'model':_0xad56('0xf'),'as':_0xad56('0xf'),'attributes':['id',_0xad56('0x4')]}]},{'model':_0xad56('0x13'),'as':_0xad56('0x14'),'attributes':['id','name']}]}]},'log':_0xad56('0x3')});};};