3c748dfffaea1b28930e3d9dc365b2ee2b25db1f
[motion2.git] / server / api / intZohoField / intZohoField.model.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 _0x3894=['lodash','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./intZohoField.attributes','exports','define','ZohoField','int_zoho_fields','zoho_unique_index','idField','FieldId'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0x3894,0x80));var _0x4389=function(_0x41cc3f,_0x2678a2){_0x41cc3f=_0x41cc3f-0x0;var _0x47ff58=_0x3894[_0x41cc3f];return _0x47ff58;};'use strict';var _=require(_0x4389('0x0'));var util=require('util');var logger=require(_0x4389('0x1'))(_0x4389('0x2'));var moment=require(_0x4389('0x3'));var BPromise=require(_0x4389('0x4'));var rp=require(_0x4389('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4389('0x6'));var config=require(_0x4389('0x7'));var attributes=require(_0x4389('0x8'));module[_0x4389('0x9')]=function(_0x1eab69,_0x11aac1){return _0x1eab69[_0x4389('0xa')](_0x4389('0xb'),attributes,{'tableName':_0x4389('0xc'),'paranoid':![],'indexes':[{'name':_0x4389('0xd'),'fields':[_0x4389('0xe'),_0x4389('0xf')],'unique':!![]}],'timestamps':!![]});};