c9233848d699a325ab88f4190a68328f30a08d49
[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 _0x95c5=['apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','FreshdeskField','Subjects','type','content','variableName','Variable','key','keyContent','Fields','idField','nameField','customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username'];(function(_0x5c73e2,_0x47aa7a){var _0x4e7cbd=function(_0x568fdb){while(--_0x568fdb){_0x5c73e2['push'](_0x5c73e2['shift']());}};_0x4e7cbd(++_0x47aa7a);}(_0x95c5,0x153));var _0x595c=function(_0x2c96f6,_0x877207){_0x2c96f6=_0x2c96f6-0x0;var _0x6d4808=_0x95c5[_0x2c96f6];return _0x6d4808;};'use strict';var client=require(_0x595c('0x0'));exports[_0x595c('0x1')]=function(){return function(_0x4c7d81){return client[_0x595c('0x2')](_0x595c('0x3'),{'options':{'raw':![],'attributes':['id',_0x595c('0x4'),_0x595c('0x5'),_0x595c('0x6'),_0x595c('0x7'),_0x595c('0x8')],'include':[{'model':_0x595c('0x9'),'as':_0x595c('0xa'),'attributes':['id',_0x595c('0x4')],'include':[{'model':'Tag','attributes':['id','name']},{'model':_0x595c('0xb'),'as':_0x595c('0xc'),'attributes':['id',_0x595c('0xd'),_0x595c('0xe'),_0x595c('0xf')],'include':[{'model':_0x595c('0x10'),'as':_0x595c('0x10'),'attributes':['id',_0x595c('0x4')]}]},{'model':_0x595c('0xb'),'as':'Descriptions','attributes':['id',_0x595c('0xd'),_0x595c('0xe'),_0x595c('0x11'),'keyType',_0x595c('0x12'),_0x595c('0xf')],'include':[{'model':_0x595c('0x10'),'as':_0x595c('0x10'),'attributes':['id',_0x595c('0x4')]}]},{'model':_0x595c('0xb'),'as':_0x595c('0x13'),'attributes':['id',_0x595c('0xd'),_0x595c('0xe'),_0x595c('0x14'),_0x595c('0x15'),_0x595c('0x16'),_0x595c('0xf')],'include':[{'model':_0x595c('0x10'),'as':'Variable','attributes':['id',_0x595c('0x4')]}]}]}]},'log':_0x595c('0x3')});};};