acbcc6ebf72f5246e27f26005c71b437aa28bb64
[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 _0xfe52=['FreshdeskField','freshdesk_unique_index','idField','FieldId','lodash','util','../../config/logger','moment','request-promise','path','rimraf','../../config/environment','exports','define'];(function(_0x11bf1d,_0xec50a7){var _0x4955e3=function(_0x51edb0){while(--_0x51edb0){_0x11bf1d['push'](_0x11bf1d['shift']());}};_0x4955e3(++_0xec50a7);}(_0xfe52,0x1a8));var _0x2fe5=function(_0x1b919f,_0xec3f28){_0x1b919f=_0x1b919f-0x0;var _0x4c8244=_0xfe52[_0x1b919f];return _0x4c8244;};'use strict';var _=require(_0x2fe5('0x0'));var util=require(_0x2fe5('0x1'));var logger=require(_0x2fe5('0x2'))('api');var moment=require(_0x2fe5('0x3'));var BPromise=require('bluebird');var rp=require(_0x2fe5('0x4'));var fs=require('fs');var path=require(_0x2fe5('0x5'));var rimraf=require(_0x2fe5('0x6'));var config=require(_0x2fe5('0x7'));var attributes=require('./intFreshdeskField.attributes');module[_0x2fe5('0x8')]=function(_0x2251ef,_0x1e24e7){return _0x2251ef[_0x2fe5('0x9')](_0x2fe5('0xa'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0x2fe5('0xb'),'fields':[_0x2fe5('0xc'),_0x2fe5('0xd')],'unique':!![]}],'timestamps':!![]});};