9a0b65ee1af2c779d4c337c42ca973ab90a970d0
[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 _0xd1d3=['define','int_freshsales_fields','freshsales_unique_index','FieldId','util','../../config/logger','request-promise','path','../../config/environment','./intFreshsalesField.attributes'];(function(_0x45dfab,_0x170e70){var _0x1ce4c6=function(_0x3caae3){while(--_0x3caae3){_0x45dfab['push'](_0x45dfab['shift']());}};_0x1ce4c6(++_0x170e70);}(_0xd1d3,0x68));var _0x3d1d=function(_0x3e5f40,_0xed8137){_0x3e5f40=_0x3e5f40-0x0;var _0x2f3c42=_0xd1d3[_0x3e5f40];return _0x2f3c42;};'use strict';var _=require('lodash');var util=require(_0x3d1d('0x0'));var logger=require(_0x3d1d('0x1'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x3d1d('0x2'));var fs=require('fs');var path=require(_0x3d1d('0x3'));var rimraf=require('rimraf');var config=require(_0x3d1d('0x4'));var attributes=require(_0x3d1d('0x5'));module['exports']=function(_0x1169e7,_0x18068f){return _0x1169e7[_0x3d1d('0x6')]('FreshsalesField',attributes,{'tableName':_0x3d1d('0x7'),'paranoid':![],'indexes':[{'name':_0x3d1d('0x8'),'fields':['idField',_0x3d1d('0x9')],'unique':!![]}],'timestamps':!![]});};