497195640e6c1c9992078d01d1dfc3dd87f20f20
[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 _0xa098=['VtigerConfiguration','Configurations','name','Subjects','type','content','variableName','Variable','Descriptions','keyContent','VtigerField','Fields','idField','nameField','customField','../../client','getVtigerAccounts','GetVtigerAccount','description','username','accessKey','remoteUri','serverUrl'];(function(_0xe9c22d,_0x5044b4){var _0x3bf390=function(_0x5b1227){while(--_0x5b1227){_0xe9c22d['push'](_0xe9c22d['shift']());}};_0x3bf390(++_0x5044b4);}(_0xa098,0x1ad));var _0x8a09=function(_0x17b229,_0x19c14b){_0x17b229=_0x17b229-0x0;var _0x34dd5d=_0xa098[_0x17b229];return _0x34dd5d;};'use strict';var client=require(_0x8a09('0x0'));exports[_0x8a09('0x1')]=function(){return function(_0x56a8ea){return client['Request'](_0x8a09('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x8a09('0x3'),_0x8a09('0x4'),_0x8a09('0x5'),_0x8a09('0x6'),_0x8a09('0x7')],'include':[{'model':_0x8a09('0x8'),'as':_0x8a09('0x9'),'attributes':['id',_0x8a09('0xa')],'include':[{'model':'VtigerField','as':_0x8a09('0xb'),'attributes':['id',_0x8a09('0xc'),_0x8a09('0xd'),_0x8a09('0xe')],'include':[{'model':'Variable','as':_0x8a09('0xf'),'attributes':['id','name']}]},{'model':'VtigerField','as':_0x8a09('0x10'),'attributes':['id','type','content','key','keyType',_0x8a09('0x11'),'variableName'],'include':[{'model':_0x8a09('0xf'),'as':_0x8a09('0xf'),'attributes':['id',_0x8a09('0xa')]}]},{'model':_0x8a09('0x12'),'as':_0x8a09('0x13'),'attributes':['id',_0x8a09('0xc'),_0x8a09('0xd'),_0x8a09('0x14'),_0x8a09('0x15'),_0x8a09('0x16'),_0x8a09('0xe')],'include':[{'model':'Variable','as':_0x8a09('0xf'),'attributes':['id','name']}]}]}]},'log':_0x8a09('0x2')});};};