1d5ddb19999323912fa70c38e9c4d7d4d50f3657
[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 _0xbe9d=['serverUrl','FreshdeskConfiguration','Configurations','FreshdeskField','Subjects','content','variableName','Variable','Descriptions','type','keyType','keyContent','Fields','nameField','customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','apiKey','remoteUri'];(function(_0x2b576b,_0x2a4883){var _0x1ddd5a=function(_0x4a4e83){while(--_0x4a4e83){_0x2b576b['push'](_0x2b576b['shift']());}};_0x1ddd5a(++_0x2a4883);}(_0xbe9d,0x99));var _0xdbe9=function(_0x4154a6,_0x2c0b8e){_0x4154a6=_0x4154a6-0x0;var _0x3b2786=_0xbe9d[_0x4154a6];return _0x3b2786;};'use strict';var client=require(_0xdbe9('0x0'));exports[_0xdbe9('0x1')]=function(){return function(_0x37c57c){return client[_0xdbe9('0x2')](_0xdbe9('0x3'),{'options':{'raw':![],'attributes':['id',_0xdbe9('0x4'),_0xdbe9('0x5'),_0xdbe9('0x6'),_0xdbe9('0x7'),_0xdbe9('0x8')],'include':[{'model':_0xdbe9('0x9'),'as':_0xdbe9('0xa'),'attributes':['id',_0xdbe9('0x4')],'include':[{'model':'Tag','attributes':['id','name']},{'model':_0xdbe9('0xb'),'as':_0xdbe9('0xc'),'attributes':['id','type',_0xdbe9('0xd'),_0xdbe9('0xe')],'include':[{'model':_0xdbe9('0xf'),'as':'Variable','attributes':['id','name']}]},{'model':_0xdbe9('0xb'),'as':_0xdbe9('0x10'),'attributes':['id',_0xdbe9('0x11'),_0xdbe9('0xd'),'key',_0xdbe9('0x12'),_0xdbe9('0x13'),_0xdbe9('0xe')],'include':[{'model':_0xdbe9('0xf'),'as':'Variable','attributes':['id',_0xdbe9('0x4')]}]},{'model':'FreshdeskField','as':_0xdbe9('0x14'),'attributes':['id',_0xdbe9('0x11'),_0xdbe9('0xd'),'idField',_0xdbe9('0x15'),_0xdbe9('0x16'),_0xdbe9('0xe')],'include':[{'model':'Variable','as':_0xdbe9('0xf'),'attributes':['id','name']}]}]}]},'log':_0xdbe9('0x3')});};};