bf2917401bb0e878369f14591b3af1c344bf947e
[motion2.git] / server / api / intFreshsalesField / intFreshsalesField.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 _0x2e07=['bluebird','request-promise','../../config/environment','./intFreshsalesField.attributes','define','FreshsalesField','freshsales_unique_index','FieldId','lodash','util','api'];(function(_0x45c856,_0x5e6a1e){var _0x4961aa=function(_0x29f14d){while(--_0x29f14d){_0x45c856['push'](_0x45c856['shift']());}};_0x4961aa(++_0x5e6a1e);}(_0x2e07,0x152));var _0x72e0=function(_0x1f589f,_0x18c7b0){_0x1f589f=_0x1f589f-0x0;var _0x4e6393=_0x2e07[_0x1f589f];return _0x4e6393;};'use strict';var _=require(_0x72e0('0x0'));var util=require(_0x72e0('0x1'));var logger=require('../../config/logger')(_0x72e0('0x2'));var moment=require('moment');var BPromise=require(_0x72e0('0x3'));var rp=require(_0x72e0('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x72e0('0x5'));var attributes=require(_0x72e0('0x6'));module['exports']=function(_0x558f56,_0xc60c63){return _0x558f56[_0x72e0('0x7')](_0x72e0('0x8'),attributes,{'tableName':'int_freshsales_fields','paranoid':![],'indexes':[{'name':_0x72e0('0x9'),'fields':['idField',_0x72e0('0xa')],'unique':!![]}],'timestamps':!![]});};