59be61ef5d7ab68fb79940ee6e59f5f121a5975c
[motion2.git] / server / services / ami / rpc / integrations / zendesk.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 _0x8cd5=['Tag','ZendeskField','Subjects','variableName','Variable','Descriptions','content','key','keyType','keyContent','Fields','idField','customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','remoteUri','serverUrl','type'];(function(_0x4ff09b,_0x53f67d){var _0x3f5c2e=function(_0x124592){while(--_0x124592){_0x4ff09b['push'](_0x4ff09b['shift']());}};_0x3f5c2e(++_0x53f67d);}(_0x8cd5,0x121));var _0x58cd=function(_0x1fb88b,_0x3e399c){_0x1fb88b=_0x1fb88b-0x0;var _0x3e3c3d=_0x8cd5[_0x1fb88b];return _0x3e3c3d;};'use strict';var client=require(_0x58cd('0x0'));exports[_0x58cd('0x1')]=function(){return function(_0x4a0702){return client[_0x58cd('0x2')](_0x58cd('0x3'),{'options':{'raw':![],'attributes':['id',_0x58cd('0x4'),_0x58cd('0x5'),_0x58cd('0x6'),'token',_0x58cd('0x7'),'authType',_0x58cd('0x8'),_0x58cd('0x9')],'include':[{'model':'ZendeskConfiguration','as':'Configurations','attributes':['id',_0x58cd('0x4')],'include':[{'model':_0x58cd('0xa'),'attributes':['id','name']},{'model':_0x58cd('0xb'),'as':_0x58cd('0xc'),'attributes':['id',_0x58cd('0x9'),'content',_0x58cd('0xd')],'include':[{'model':_0x58cd('0xe'),'as':_0x58cd('0xe'),'attributes':['id','name']}]},{'model':_0x58cd('0xb'),'as':_0x58cd('0xf'),'attributes':['id','type',_0x58cd('0x10'),_0x58cd('0x11'),_0x58cd('0x12'),_0x58cd('0x13'),_0x58cd('0xd')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x58cd('0x4')]}]},{'model':_0x58cd('0xb'),'as':_0x58cd('0x14'),'attributes':['id','type',_0x58cd('0x10'),_0x58cd('0x15'),'nameField',_0x58cd('0x16'),_0x58cd('0xd')],'include':[{'model':'Variable','as':_0x58cd('0xe'),'attributes':['id','name']}]}]}]},'log':_0x58cd('0x3')});};};