330c56f34d8bcec826718f50bf183d22e9a967d0
[motion2.git] / server / api / intFreshdeskField / intFreshdeskField.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 _0x81f8=['FreshdeskField','int_freshdesk_fields','FieldId','lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./intFreshdeskField.attributes','exports'];(function(_0x5717f9,_0x4dbe8e){var _0x48c89e=function(_0x52b313){while(--_0x52b313){_0x5717f9['push'](_0x5717f9['shift']());}};_0x48c89e(++_0x4dbe8e);}(_0x81f8,0x17d));var _0x881f=function(_0x211486,_0x268764){_0x211486=_0x211486-0x0;var _0xd0d227=_0x81f8[_0x211486];return _0xd0d227;};'use strict';var _=require(_0x881f('0x0'));var util=require(_0x881f('0x1'));var logger=require('../../config/logger')(_0x881f('0x2'));var moment=require(_0x881f('0x3'));var BPromise=require(_0x881f('0x4'));var rp=require(_0x881f('0x5'));var fs=require('fs');var path=require(_0x881f('0x6'));var rimraf=require(_0x881f('0x7'));var config=require(_0x881f('0x8'));var attributes=require(_0x881f('0x9'));module[_0x881f('0xa')]=function(_0x1fc793,_0x427e31){return _0x1fc793['define'](_0x881f('0xb'),attributes,{'tableName':_0x881f('0xc'),'paranoid':![],'indexes':[{'name':'freshdesk_unique_index','fields':['idField',_0x881f('0xd')],'unique':!![]}],'timestamps':!![]});};