Built motion from commit ab870f9e.|2.5.44
[motion2.git] / server / services / ami / rpc / integrations / zoho.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 _0xcb70=['name','description','host','zone','clientId','clientSecret','serverUrl','ZohoConfiguration','Configurations','ZohoField','Subjects','type','Variable','Descriptions','content','key','keyType','keyContent','variableName','Fields','idField','nameField','../../client','getZohoAccounts','Request','GetZohoAccount'];(function(_0x25435a,_0x3c8a5e){var _0x387c3f=function(_0x1c81d6){while(--_0x1c81d6){_0x25435a['push'](_0x25435a['shift']());}};_0x387c3f(++_0x3c8a5e);}(_0xcb70,0x182));var _0x0cb7=function(_0x25e7cb,_0x3579b7){_0x25e7cb=_0x25e7cb-0x0;var _0x375d92=_0xcb70[_0x25e7cb];return _0x375d92;};'use strict';var client=require(_0x0cb7('0x0'));exports[_0x0cb7('0x1')]=function(){return function(_0x379899){return client[_0x0cb7('0x2')](_0x0cb7('0x3'),{'options':{'raw':![],'attributes':['id',_0x0cb7('0x4'),_0x0cb7('0x5'),_0x0cb7('0x6'),_0x0cb7('0x7'),_0x0cb7('0x8'),_0x0cb7('0x9'),_0x0cb7('0xa'),'code','refreshToken'],'include':[{'model':_0x0cb7('0xb'),'as':_0x0cb7('0xc'),'attributes':['id',_0x0cb7('0x4'),'moduleCreate','moduleSearch',_0x0cb7('0x5')],'include':[{'model':_0x0cb7('0xd'),'as':_0x0cb7('0xe'),'attributes':['id',_0x0cb7('0xf'),'content','variableName'],'include':[{'model':_0x0cb7('0x10'),'as':_0x0cb7('0x10'),'attributes':['id',_0x0cb7('0x4')]}]},{'model':'ZohoField','as':_0x0cb7('0x11'),'attributes':['id',_0x0cb7('0xf'),_0x0cb7('0x12'),_0x0cb7('0x13'),_0x0cb7('0x14'),_0x0cb7('0x15'),_0x0cb7('0x16')],'include':[{'model':_0x0cb7('0x10'),'as':'Variable','attributes':['id',_0x0cb7('0x4')]}]},{'model':_0x0cb7('0xd'),'as':_0x0cb7('0x17'),'attributes':['id',_0x0cb7('0xf'),_0x0cb7('0x12'),_0x0cb7('0x18'),_0x0cb7('0x19'),'customField',_0x0cb7('0x16')],'include':[{'model':_0x0cb7('0x10'),'as':_0x0cb7('0x10'),'attributes':['id',_0x0cb7('0x4')]}]}]}]},'log':_0x0cb7('0x3')});};};