d7f55e196d78f023f717a48f363d61ddfaefa8f7
[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 _0x8cb3=['content','key','keyType','keyContent','idField','GetFreshdeskAccount','../../client','getFreshdeskAccounts','Request','name','username','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','Subjects','variableName','Variable','Descriptions','type'];(function(_0x472516,_0x507cad){var _0x3819c0=function(_0x6482e5){while(--_0x6482e5){_0x472516['push'](_0x472516['shift']());}};_0x3819c0(++_0x507cad);}(_0x8cb3,0x124));var _0x38cb=function(_0xfb9f92,_0x436ded){_0xfb9f92=_0xfb9f92-0x0;var _0x48757b=_0x8cb3[_0xfb9f92];return _0x48757b;};'use strict';var client=require(_0x38cb('0x0'));exports[_0x38cb('0x1')]=function(){return function(_0x149475){return client[_0x38cb('0x2')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0x38cb('0x3'),_0x38cb('0x4'),'apiKey',_0x38cb('0x5'),_0x38cb('0x6')],'include':[{'model':_0x38cb('0x7'),'as':_0x38cb('0x8'),'attributes':['id',_0x38cb('0x3')],'include':[{'model':_0x38cb('0x9'),'attributes':['id',_0x38cb('0x3')]},{'model':_0x38cb('0xa'),'as':_0x38cb('0xb'),'attributes':['id','type','content',_0x38cb('0xc')],'include':[{'model':_0x38cb('0xd'),'as':'Variable','attributes':['id',_0x38cb('0x3')]}]},{'model':_0x38cb('0xa'),'as':_0x38cb('0xe'),'attributes':['id',_0x38cb('0xf'),_0x38cb('0x10'),_0x38cb('0x11'),_0x38cb('0x12'),_0x38cb('0x13'),_0x38cb('0xc')],'include':[{'model':_0x38cb('0xd'),'as':_0x38cb('0xd'),'attributes':['id',_0x38cb('0x3')]}]},{'model':_0x38cb('0xa'),'as':'Fields','attributes':['id',_0x38cb('0xf'),'content',_0x38cb('0x14'),'nameField','customField','variableName'],'include':[{'model':_0x38cb('0xd'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0x38cb('0x15')});};};