Built motion from commit ab870f9e.|2.5.44
[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 _0xa699=['serverUrl','FreshdeskConfiguration','Configurations','FreshdeskField','Subjects','type','variableName','Variable','content','keyType','keyContent','Fields','idField','nameField','customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','apiKey','remoteUri'];(function(_0x2f1908,_0x5d837d){var _0x357795=function(_0x5bf606){while(--_0x5bf606){_0x2f1908['push'](_0x2f1908['shift']());}};_0x357795(++_0x5d837d);}(_0xa699,0x6b));var _0x9a69=function(_0x5ca52d,_0x3a4a22){_0x5ca52d=_0x5ca52d-0x0;var _0x89e54e=_0xa699[_0x5ca52d];return _0x89e54e;};'use strict';var client=require(_0x9a69('0x0'));exports[_0x9a69('0x1')]=function(){return function(_0x331c94){return client[_0x9a69('0x2')](_0x9a69('0x3'),{'options':{'raw':![],'attributes':['id',_0x9a69('0x4'),_0x9a69('0x5'),_0x9a69('0x6'),_0x9a69('0x7'),_0x9a69('0x8')],'include':[{'model':_0x9a69('0x9'),'as':_0x9a69('0xa'),'attributes':['id',_0x9a69('0x4')],'include':[{'model':'Tag','attributes':['id',_0x9a69('0x4')]},{'model':_0x9a69('0xb'),'as':_0x9a69('0xc'),'attributes':['id',_0x9a69('0xd'),'content',_0x9a69('0xe')],'include':[{'model':_0x9a69('0xf'),'as':_0x9a69('0xf'),'attributes':['id',_0x9a69('0x4')]}]},{'model':_0x9a69('0xb'),'as':'Descriptions','attributes':['id','type',_0x9a69('0x10'),'key',_0x9a69('0x11'),_0x9a69('0x12'),'variableName'],'include':[{'model':_0x9a69('0xf'),'as':_0x9a69('0xf'),'attributes':['id','name']}]},{'model':_0x9a69('0xb'),'as':_0x9a69('0x13'),'attributes':['id',_0x9a69('0xd'),_0x9a69('0x10'),_0x9a69('0x14'),_0x9a69('0x15'),_0x9a69('0x16'),_0x9a69('0xe')],'include':[{'model':_0x9a69('0xf'),'as':'Variable','attributes':['id',_0x9a69('0x4')]}]}]}]},'log':_0x9a69('0x3')});};};