8fe5d19369eb3e19d16108f5cf9536987aa8fd0c
[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 _0x0d14=['lodash','moment','request-promise','path','rimraf','./intZohoField.attributes','define','ZohoField','int_zoho_fields','zoho_unique_index','idField','FieldId'];(function(_0x30a856,_0x4b64db){var _0x1d8fe8=function(_0x16dac9){while(--_0x16dac9){_0x30a856['push'](_0x30a856['shift']());}};_0x1d8fe8(++_0x4b64db);}(_0x0d14,0x1c8));var _0x40d1=function(_0x3de742,_0x2a2512){_0x3de742=_0x3de742-0x0;var _0x11242e=_0x0d14[_0x3de742];return _0x11242e;};'use strict';var _=require(_0x40d1('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x40d1('0x1'));var BPromise=require('bluebird');var rp=require(_0x40d1('0x2'));var fs=require('fs');var path=require(_0x40d1('0x3'));var rimraf=require(_0x40d1('0x4'));var config=require('../../config/environment');var attributes=require(_0x40d1('0x5'));module['exports']=function(_0x3bf8e6,_0x13770f){return _0x3bf8e6[_0x40d1('0x6')](_0x40d1('0x7'),attributes,{'tableName':_0x40d1('0x8'),'paranoid':![],'indexes':[{'name':_0x40d1('0x9'),'fields':[_0x40d1('0xa'),_0x40d1('0xb')],'unique':!![]}],'timestamps':!![]});};