9a994ef91b927d628a31e6c9650ff0df94becf8c
[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 _0x578c=['Configurations','Tag','FreshdeskField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','Fields','idField','customField','../../client','getFreshdeskAccounts','GetFreshdeskAccount','name','username','remoteUri','serverUrl','FreshdeskConfiguration'];(function(_0x4b7895,_0x3c4f5d){var _0x264180=function(_0xe0e861){while(--_0xe0e861){_0x4b7895['push'](_0x4b7895['shift']());}};_0x264180(++_0x3c4f5d);}(_0x578c,0x158));var _0xc578=function(_0x12aad6,_0x1f5f81){_0x12aad6=_0x12aad6-0x0;var _0x500b74=_0x578c[_0x12aad6];return _0x500b74;};'use strict';var client=require(_0xc578('0x0'));exports[_0xc578('0x1')]=function(){return function(_0x161686){return client['Request'](_0xc578('0x2'),{'options':{'raw':![],'attributes':['id',_0xc578('0x3'),_0xc578('0x4'),'apiKey',_0xc578('0x5'),_0xc578('0x6')],'include':[{'model':_0xc578('0x7'),'as':_0xc578('0x8'),'attributes':['id',_0xc578('0x3')],'include':[{'model':_0xc578('0x9'),'attributes':['id',_0xc578('0x3')]},{'model':_0xc578('0xa'),'as':_0xc578('0xb'),'attributes':['id',_0xc578('0xc'),_0xc578('0xd'),_0xc578('0xe')],'include':[{'model':_0xc578('0xf'),'as':_0xc578('0xf'),'attributes':['id','name']}]},{'model':'FreshdeskField','as':_0xc578('0x10'),'attributes':['id','type',_0xc578('0xd'),_0xc578('0x11'),_0xc578('0x12'),'keyContent',_0xc578('0xe')],'include':[{'model':_0xc578('0xf'),'as':_0xc578('0xf'),'attributes':['id','name']}]},{'model':_0xc578('0xa'),'as':_0xc578('0x13'),'attributes':['id',_0xc578('0xc'),_0xc578('0xd'),_0xc578('0x14'),'nameField',_0xc578('0x15'),_0xc578('0xe')],'include':[{'model':_0xc578('0xf'),'as':_0xc578('0xf'),'attributes':['id',_0xc578('0x3')]}]}]}]},'log':_0xc578('0x2')});};};