7fe95d2658e4936c044561b592e14362fb765f5a
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0x10ca=['Subjects','type','content','variableName','Variable','Descriptions','key','keyContent','idField','nameField','customField','../../client','getVtigerAccounts','Request','GetVtigerAccount','name','description','accessKey','remoteUri','serverUrl','VtigerConfiguration','VtigerField'];(function(_0x15ccbc,_0x1b2d1f){var _0x546ad5=function(_0x57a716){while(--_0x57a716){_0x15ccbc['push'](_0x15ccbc['shift']());}};_0x546ad5(++_0x1b2d1f);}(_0x10ca,0x1d9));var _0xa10c=function(_0x424895,_0x14c6f8){_0x424895=_0x424895-0x0;var _0xbf70ff=_0x10ca[_0x424895];return _0xbf70ff;};'use strict';var client=require(_0xa10c('0x0'));exports[_0xa10c('0x1')]=function(){return function(_0x21a868){return client[_0xa10c('0x2')](_0xa10c('0x3'),{'options':{'raw':![],'attributes':['id',_0xa10c('0x4'),_0xa10c('0x5'),'username',_0xa10c('0x6'),_0xa10c('0x7'),_0xa10c('0x8')],'include':[{'model':_0xa10c('0x9'),'as':'Configurations','attributes':['id',_0xa10c('0x4')],'include':[{'model':_0xa10c('0xa'),'as':_0xa10c('0xb'),'attributes':['id',_0xa10c('0xc'),_0xa10c('0xd'),_0xa10c('0xe')],'include':[{'model':_0xa10c('0xf'),'as':_0xa10c('0xf'),'attributes':['id',_0xa10c('0x4')]}]},{'model':_0xa10c('0xa'),'as':_0xa10c('0x10'),'attributes':['id','type',_0xa10c('0xd'),_0xa10c('0x11'),'keyType',_0xa10c('0x12'),_0xa10c('0xe')],'include':[{'model':_0xa10c('0xf'),'as':'Variable','attributes':['id','name']}]},{'model':'VtigerField','as':'Fields','attributes':['id',_0xa10c('0xc'),_0xa10c('0xd'),_0xa10c('0x13'),_0xa10c('0x14'),_0xa10c('0x15'),_0xa10c('0xe')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xa10c('0x4')]}]}]}]},'log':'GetVtigerAccount'});};};