Built motion from commit d5e4af8c.|2.6.23
[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 _0xc933=['username','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','name','Tag','FreshdeskField','type','content','variableName','Variable','key','keyType','keyContent','Fields','idField','nameField','customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount'];(function(_0x333714,_0x3370ac){var _0x4c211e=function(_0x34219b){while(--_0x34219b){_0x333714['push'](_0x333714['shift']());}};_0x4c211e(++_0x3370ac);}(_0xc933,0xf9));var _0x3c93=function(_0x3a6067,_0x22d8eb){_0x3a6067=_0x3a6067-0x0;var _0x358854=_0xc933[_0x3a6067];return _0x358854;};'use strict';var client=require(_0x3c93('0x0'));exports[_0x3c93('0x1')]=function(){return function(_0x24928e){return client[_0x3c93('0x2')](_0x3c93('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x3c93('0x4'),_0x3c93('0x5'),_0x3c93('0x6'),_0x3c93('0x7')],'include':[{'model':_0x3c93('0x8'),'as':'Configurations','attributes':['id',_0x3c93('0x9')],'include':[{'model':_0x3c93('0xa'),'attributes':['id','name']},{'model':_0x3c93('0xb'),'as':'Subjects','attributes':['id',_0x3c93('0xc'),_0x3c93('0xd'),_0x3c93('0xe')],'include':[{'model':_0x3c93('0xf'),'as':_0x3c93('0xf'),'attributes':['id',_0x3c93('0x9')]}]},{'model':'FreshdeskField','as':'Descriptions','attributes':['id','type',_0x3c93('0xd'),_0x3c93('0x10'),_0x3c93('0x11'),_0x3c93('0x12'),_0x3c93('0xe')],'include':[{'model':_0x3c93('0xf'),'as':_0x3c93('0xf'),'attributes':['id',_0x3c93('0x9')]}]},{'model':_0x3c93('0xb'),'as':_0x3c93('0x13'),'attributes':['id',_0x3c93('0xc'),_0x3c93('0xd'),_0x3c93('0x14'),_0x3c93('0x15'),_0x3c93('0x16'),_0x3c93('0xe')],'include':[{'model':_0x3c93('0xf'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0x3c93('0x3')});};};