22d1ea72e597f8cc4ae82de11242e077c10c359c
[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 _0x289e=['variableName','Variable','key','keyType','keyContent','idField','nameField','../../client','Request','GetZendeskAccount','name','username','token','remoteUri','serverUrl','type','ZendeskConfiguration','Configurations','Tag','ZendeskField','Subjects','content'];(function(_0x1d84a9,_0x1c4e58){var _0x14c68b=function(_0x462afc){while(--_0x462afc){_0x1d84a9['push'](_0x1d84a9['shift']());}};_0x14c68b(++_0x1c4e58);}(_0x289e,0xcd));var _0xe289=function(_0x5d273b,_0x2c1e4b){_0x5d273b=_0x5d273b-0x0;var _0x50cc5f=_0x289e[_0x5d273b];return _0x50cc5f;};'use strict';var client=require(_0xe289('0x0'));exports['getZendeskAccounts']=function(){return function(_0x437091){return client[_0xe289('0x1')](_0xe289('0x2'),{'options':{'raw':![],'attributes':['id',_0xe289('0x3'),_0xe289('0x4'),'password',_0xe289('0x5'),_0xe289('0x6'),'authType',_0xe289('0x7'),_0xe289('0x8')],'include':[{'model':_0xe289('0x9'),'as':_0xe289('0xa'),'attributes':['id',_0xe289('0x3')],'include':[{'model':_0xe289('0xb'),'attributes':['id',_0xe289('0x3')]},{'model':_0xe289('0xc'),'as':_0xe289('0xd'),'attributes':['id',_0xe289('0x8'),_0xe289('0xe'),_0xe289('0xf')],'include':[{'model':'Variable','as':_0xe289('0x10'),'attributes':['id',_0xe289('0x3')]}]},{'model':_0xe289('0xc'),'as':'Descriptions','attributes':['id',_0xe289('0x8'),_0xe289('0xe'),_0xe289('0x11'),_0xe289('0x12'),_0xe289('0x13'),_0xe289('0xf')],'include':[{'model':_0xe289('0x10'),'as':_0xe289('0x10'),'attributes':['id',_0xe289('0x3')]}]},{'model':'ZendeskField','as':'Fields','attributes':['id',_0xe289('0x8'),_0xe289('0xe'),_0xe289('0x14'),_0xe289('0x15'),'customField','variableName'],'include':[{'model':_0xe289('0x10'),'as':'Variable','attributes':['id',_0xe289('0x3')]}]}]}]},'log':_0xe289('0x2')});};};