36ea78c8b3e381ab291eab0365968d2e46596c91
[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 _0x08d1=['./intFreshdeskField.attributes','FreshdeskField','freshdesk_unique_index','idField','FieldId','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x450b21,_0x5c0be6){var _0x292a5b=function(_0x8e891f){while(--_0x8e891f){_0x450b21['push'](_0x450b21['shift']());}};_0x292a5b(++_0x5c0be6);}(_0x08d1,0x125));var _0x108d=function(_0x1f9b62,_0x29fa06){_0x1f9b62=_0x1f9b62-0x0;var _0x5bfb84=_0x08d1[_0x1f9b62];return _0x5bfb84;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x108d('0x0'))(_0x108d('0x1'));var moment=require(_0x108d('0x2'));var BPromise=require(_0x108d('0x3'));var rp=require(_0x108d('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x108d('0x5'));var config=require(_0x108d('0x6'));var attributes=require(_0x108d('0x7'));module['exports']=function(_0x59155a,_0x3ebde0){return _0x59155a['define'](_0x108d('0x8'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0x108d('0x9'),'fields':[_0x108d('0xa'),_0x108d('0xb')],'unique':!![]}],'timestamps':!![]});};