50c37e39a5851d6b95f52a34d12cc60bb1930a6b
[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 _0x44f9=['bluebird','rimraf','./intFreshsalesField.attributes','exports','define','FreshsalesField','int_freshsales_fields','freshsales_unique_index','idField','lodash','util','../../config/logger','api','moment'];(function(_0x5d18c1,_0x4ba2a2){var _0x5528c5=function(_0x143e92){while(--_0x143e92){_0x5d18c1['push'](_0x5d18c1['shift']());}};_0x5528c5(++_0x4ba2a2);}(_0x44f9,0xdb));var _0x944f=function(_0x1e3c16,_0x372caa){_0x1e3c16=_0x1e3c16-0x0;var _0x47a0c9=_0x44f9[_0x1e3c16];return _0x47a0c9;};'use strict';var _=require(_0x944f('0x0'));var util=require(_0x944f('0x1'));var logger=require(_0x944f('0x2'))(_0x944f('0x3'));var moment=require(_0x944f('0x4'));var BPromise=require(_0x944f('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x944f('0x6'));var config=require('../../config/environment');var attributes=require(_0x944f('0x7'));module[_0x944f('0x8')]=function(_0x1d5012,_0x5e472f){return _0x1d5012[_0x944f('0x9')](_0x944f('0xa'),attributes,{'tableName':_0x944f('0xb'),'paranoid':![],'indexes':[{'name':_0x944f('0xc'),'fields':[_0x944f('0xd'),'FieldId'],'unique':!![]}],'timestamps':!![]});};