6440642cf6bd536e2928499c77abf4aa1bd20d83
[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 _0x6d26=['idField','lodash','util','../../config/logger','moment','bluebird','request-promise','path','./intFreshdeskField.attributes','exports','define','FreshdeskField'];(function(_0x269fa6,_0x410011){var _0x32088c=function(_0x339b51){while(--_0x339b51){_0x269fa6['push'](_0x269fa6['shift']());}};_0x32088c(++_0x410011);}(_0x6d26,0x1e1));var _0x66d2=function(_0x2f7a8b,_0x13e3d4){_0x2f7a8b=_0x2f7a8b-0x0;var _0xfdac72=_0x6d26[_0x2f7a8b];return _0xfdac72;};'use strict';var _=require(_0x66d2('0x0'));var util=require(_0x66d2('0x1'));var logger=require(_0x66d2('0x2'))('api');var moment=require(_0x66d2('0x3'));var BPromise=require(_0x66d2('0x4'));var rp=require(_0x66d2('0x5'));var fs=require('fs');var path=require(_0x66d2('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x66d2('0x7'));module[_0x66d2('0x8')]=function(_0x57c150,_0x410099){return _0x57c150[_0x66d2('0x9')](_0x66d2('0xa'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':'freshdesk_unique_index','fields':[_0x66d2('0xb'),'FieldId'],'unique':!![]}],'timestamps':!![]});};