9f8ae885b188f9bbab97aa05b1d0df2cf08aa756
[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 _0xa908=['int_freshsales_fields','freshsales_unique_index','idField','lodash','../../config/logger','moment','bluebird','request-promise','path','rimraf','./intFreshsalesField.attributes','exports','define','FreshsalesField'];(function(_0x104a84,_0x285970){var _0x4973ff=function(_0x5064e7){while(--_0x5064e7){_0x104a84['push'](_0x104a84['shift']());}};_0x4973ff(++_0x285970);}(_0xa908,0x1c3));var _0x8a90=function(_0x523615,_0x522ee8){_0x523615=_0x523615-0x0;var _0x9863eb=_0xa908[_0x523615];return _0x9863eb;};'use strict';var _=require(_0x8a90('0x0'));var util=require('util');var logger=require(_0x8a90('0x1'))('api');var moment=require(_0x8a90('0x2'));var BPromise=require(_0x8a90('0x3'));var rp=require(_0x8a90('0x4'));var fs=require('fs');var path=require(_0x8a90('0x5'));var rimraf=require(_0x8a90('0x6'));var config=require('../../config/environment');var attributes=require(_0x8a90('0x7'));module[_0x8a90('0x8')]=function(_0x5e41b9,_0x1c516f){return _0x5e41b9[_0x8a90('0x9')](_0x8a90('0xa'),attributes,{'tableName':_0x8a90('0xb'),'paranoid':![],'indexes':[{'name':_0x8a90('0xc'),'fields':[_0x8a90('0xd'),'FieldId'],'unique':!![]}],'timestamps':!![]});};