Built motion from commit 00bf23f6.|2.6.16
[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 _0x0e21=['api','bluebird','request-promise','path','./intFreshsalesField.attributes','exports','define','FreshsalesField','int_freshsales_fields','freshsales_unique_index','idField','util','../../config/logger'];(function(_0x2c4293,_0xe10ec4){var _0x126bda=function(_0x21df6){while(--_0x21df6){_0x2c4293['push'](_0x2c4293['shift']());}};_0x126bda(++_0xe10ec4);}(_0x0e21,0xe8));var _0x10e2=function(_0x5eb7b1,_0x124f3f){_0x5eb7b1=_0x5eb7b1-0x0;var _0x4673ef=_0x0e21[_0x5eb7b1];return _0x4673ef;};'use strict';var _=require('lodash');var util=require(_0x10e2('0x0'));var logger=require(_0x10e2('0x1'))(_0x10e2('0x2'));var moment=require('moment');var BPromise=require(_0x10e2('0x3'));var rp=require(_0x10e2('0x4'));var fs=require('fs');var path=require(_0x10e2('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x10e2('0x6'));module[_0x10e2('0x7')]=function(_0x2fb9e4,_0x44e30e){return _0x2fb9e4[_0x10e2('0x8')](_0x10e2('0x9'),attributes,{'tableName':_0x10e2('0xa'),'paranoid':![],'indexes':[{'name':_0x10e2('0xb'),'fields':[_0x10e2('0xc'),'FieldId'],'unique':!![]}],'timestamps':!![]});};