d1aefe782a9d96f63789c1a970f989266f657cc6
[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 _0x22dd=['FreshdeskField','Descriptions','content','key','keyType','keyContent','Fields','customField','../../client','getFreshdeskAccounts','name','username','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','Tag','Subjects','type','variableName','Variable'];(function(_0x3f40d5,_0x20822a){var _0x708c5b=function(_0x515a8f){while(--_0x515a8f){_0x3f40d5['push'](_0x3f40d5['shift']());}};_0x708c5b(++_0x20822a);}(_0x22dd,0xe4));var _0xd22d=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x22dd[_0x3dd15e];return _0x231fd0;};'use strict';var client=require(_0xd22d('0x0'));exports[_0xd22d('0x1')]=function(){return function(_0x349e2e){return client['Request']('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0xd22d('0x2'),_0xd22d('0x3'),_0xd22d('0x4'),_0xd22d('0x5'),_0xd22d('0x6')],'include':[{'model':_0xd22d('0x7'),'as':_0xd22d('0x8'),'attributes':['id',_0xd22d('0x2')],'include':[{'model':_0xd22d('0x9'),'attributes':['id',_0xd22d('0x2')]},{'model':'FreshdeskField','as':_0xd22d('0xa'),'attributes':['id',_0xd22d('0xb'),'content',_0xd22d('0xc')],'include':[{'model':'Variable','as':_0xd22d('0xd'),'attributes':['id','name']}]},{'model':_0xd22d('0xe'),'as':_0xd22d('0xf'),'attributes':['id',_0xd22d('0xb'),_0xd22d('0x10'),_0xd22d('0x11'),_0xd22d('0x12'),_0xd22d('0x13'),_0xd22d('0xc')],'include':[{'model':'Variable','as':_0xd22d('0xd'),'attributes':['id',_0xd22d('0x2')]}]},{'model':'FreshdeskField','as':_0xd22d('0x14'),'attributes':['id',_0xd22d('0xb'),'content','idField','nameField',_0xd22d('0x15'),'variableName'],'include':[{'model':_0xd22d('0xd'),'as':'Variable','attributes':['id',_0xd22d('0x2')]}]}]}]},'log':'GetFreshdeskAccount'});};};