c76a547745e0d5ebf18bff40988eb9021b0b8a19
[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 _0x4171=['variableName','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','apiKey','serverUrl','Configurations','Tag','FreshdeskField','Subjects','content','Descriptions','type','key','keyType','keyContent','Variable','idField','customField'];(function(_0x42138d,_0x24d364){var _0x3ae79f=function(_0x1d6bba){while(--_0x1d6bba){_0x42138d['push'](_0x42138d['shift']());}};_0x3ae79f(++_0x24d364);}(_0x4171,0x6a));var _0x1417=function(_0x2cbf09,_0x41b132){_0x2cbf09=_0x2cbf09-0x0;var _0x5d1629=_0x4171[_0x2cbf09];return _0x5d1629;};'use strict';var client=require('../../client');exports[_0x1417('0x0')]=function(){return function(_0x23b67b){return client[_0x1417('0x1')](_0x1417('0x2'),{'options':{'raw':![],'attributes':['id',_0x1417('0x3'),_0x1417('0x4'),_0x1417('0x5'),'remoteUri',_0x1417('0x6')],'include':[{'model':'FreshdeskConfiguration','as':_0x1417('0x7'),'attributes':['id','name'],'include':[{'model':_0x1417('0x8'),'attributes':['id',_0x1417('0x3')]},{'model':_0x1417('0x9'),'as':_0x1417('0xa'),'attributes':['id','type',_0x1417('0xb'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x1417('0x3')]}]},{'model':_0x1417('0x9'),'as':_0x1417('0xc'),'attributes':['id',_0x1417('0xd'),_0x1417('0xb'),_0x1417('0xe'),_0x1417('0xf'),_0x1417('0x10'),'variableName'],'include':[{'model':'Variable','as':_0x1417('0x11'),'attributes':['id',_0x1417('0x3')]}]},{'model':_0x1417('0x9'),'as':'Fields','attributes':['id',_0x1417('0xd'),_0x1417('0xb'),_0x1417('0x12'),'nameField',_0x1417('0x13'),_0x1417('0x14')],'include':[{'model':_0x1417('0x11'),'as':_0x1417('0x11'),'attributes':['id',_0x1417('0x3')]}]}]}]},'log':_0x1417('0x2')});};};