2d961de6400cda649895e7c20410f4116374d783
[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 _0xe864=['serverUrl','FreshdeskConfiguration','Configurations','name','Tag','FreshdeskField','Subjects','type','content','variableName','Variable','key','keyContent','Fields','idField','nameField','customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','username','apiKey'];(function(_0x41bdb7,_0x2d3c1c){var _0xa1e594=function(_0x4aa014){while(--_0x4aa014){_0x41bdb7['push'](_0x41bdb7['shift']());}};_0xa1e594(++_0x2d3c1c);}(_0xe864,0x13c));var _0x4e86=function(_0x358afd,_0x10c702){_0x358afd=_0x358afd-0x0;var _0xe5c41a=_0xe864[_0x358afd];return _0xe5c41a;};'use strict';var client=require(_0x4e86('0x0'));exports[_0x4e86('0x1')]=function(){return function(_0x490676){return client[_0x4e86('0x2')](_0x4e86('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x4e86('0x4'),_0x4e86('0x5'),'remoteUri',_0x4e86('0x6')],'include':[{'model':_0x4e86('0x7'),'as':_0x4e86('0x8'),'attributes':['id',_0x4e86('0x9')],'include':[{'model':_0x4e86('0xa'),'attributes':['id',_0x4e86('0x9')]},{'model':_0x4e86('0xb'),'as':_0x4e86('0xc'),'attributes':['id',_0x4e86('0xd'),_0x4e86('0xe'),_0x4e86('0xf')],'include':[{'model':'Variable','as':_0x4e86('0x10'),'attributes':['id','name']}]},{'model':'FreshdeskField','as':'Descriptions','attributes':['id',_0x4e86('0xd'),_0x4e86('0xe'),_0x4e86('0x11'),'keyType',_0x4e86('0x12'),_0x4e86('0xf')],'include':[{'model':_0x4e86('0x10'),'as':_0x4e86('0x10'),'attributes':['id','name']}]},{'model':_0x4e86('0xb'),'as':_0x4e86('0x13'),'attributes':['id','type',_0x4e86('0xe'),_0x4e86('0x14'),_0x4e86('0x15'),_0x4e86('0x16'),_0x4e86('0xf')],'include':[{'model':_0x4e86('0x10'),'as':'Variable','attributes':['id',_0x4e86('0x9')]}]}]}]},'log':'GetFreshdeskAccount'});};};