ea196ee7b326bb9f7bb05164713f72e857a7840d
[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 _0xa87a=['../../config/environment','./intFreshdeskField.attributes','exports','freshdesk_unique_index','FieldId','lodash','util','../../config/logger','request-promise','path','rimraf'];(function(_0x3bc642,_0x480870){var _0x4a66f3=function(_0x54fd19){while(--_0x54fd19){_0x3bc642['push'](_0x3bc642['shift']());}};_0x4a66f3(++_0x480870);}(_0xa87a,0x12e));var _0xaa87=function(_0x21a9d9,_0x4d5ac8){_0x21a9d9=_0x21a9d9-0x0;var _0x46adce=_0xa87a[_0x21a9d9];return _0x46adce;};'use strict';var _=require(_0xaa87('0x0'));var util=require(_0xaa87('0x1'));var logger=require(_0xaa87('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xaa87('0x3'));var fs=require('fs');var path=require(_0xaa87('0x4'));var rimraf=require(_0xaa87('0x5'));var config=require(_0xaa87('0x6'));var attributes=require(_0xaa87('0x7'));module[_0xaa87('0x8')]=function(_0x53cb9e,_0x2953){return _0x53cb9e['define']('FreshdeskField',attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0xaa87('0x9'),'fields':['idField',_0xaa87('0xa')],'unique':!![]}],'timestamps':!![]});};