f36af4e07ed865f315d464221be88f6a944a7da5
[motion2.git] / server / services / ami / rpc / integrations / freshdesk.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 _0x3c81=['Request','GetFreshdeskAccount','serverUrl','FreshdeskConfiguration','Configurations','name','Tag','FreshdeskField','type','variableName','Variable','Descriptions','content','key','keyType','keyContent','Fields','nameField','../../client','getFreshdeskAccounts'];(function(_0x29d530,_0x5da0d7){var _0x242905=function(_0x5e7857){while(--_0x5e7857){_0x29d530['push'](_0x29d530['shift']());}};_0x242905(++_0x5da0d7);}(_0x3c81,0x102));var _0x13c8=function(_0x1009f4,_0x30e5d9){_0x1009f4=_0x1009f4-0x0;var _0x7dccbc=_0x3c81[_0x1009f4];return _0x7dccbc;};'use strict';var client=require(_0x13c8('0x0'));exports[_0x13c8('0x1')]=function(){return function(_0x48c35b){return client[_0x13c8('0x2')](_0x13c8('0x3'),{'options':{'raw':![],'attributes':['id','name','username','apiKey','remoteUri',_0x13c8('0x4')],'include':[{'model':_0x13c8('0x5'),'as':_0x13c8('0x6'),'attributes':['id',_0x13c8('0x7')],'include':[{'model':_0x13c8('0x8'),'attributes':['id',_0x13c8('0x7')]},{'model':_0x13c8('0x9'),'as':'Subjects','attributes':['id',_0x13c8('0xa'),'content',_0x13c8('0xb')],'include':[{'model':_0x13c8('0xc'),'as':_0x13c8('0xc'),'attributes':['id',_0x13c8('0x7')]}]},{'model':_0x13c8('0x9'),'as':_0x13c8('0xd'),'attributes':['id',_0x13c8('0xa'),_0x13c8('0xe'),_0x13c8('0xf'),_0x13c8('0x10'),_0x13c8('0x11'),_0x13c8('0xb')],'include':[{'model':_0x13c8('0xc'),'as':_0x13c8('0xc'),'attributes':['id','name']}]},{'model':_0x13c8('0x9'),'as':_0x13c8('0x12'),'attributes':['id',_0x13c8('0xa'),_0x13c8('0xe'),'idField',_0x13c8('0x13'),'customField','variableName'],'include':[{'model':'Variable','as':_0x13c8('0xc'),'attributes':['id','name']}]}]}]},'log':_0x13c8('0x3')});};};