168a14cab77793cdc6b2c37d86abcc62a073ef87
[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 _0xd53a=['path','rimraf','../../config/environment','./intFreshdeskField.attributes','exports','define','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','idField','FieldId','lodash','util','../../config/logger','moment','bluebird','request-promise'];(function(_0x335e8c,_0x5279a0){var _0x1c4719=function(_0x14b18c){while(--_0x14b18c){_0x335e8c['push'](_0x335e8c['shift']());}};_0x1c4719(++_0x5279a0);}(_0xd53a,0x14e));var _0xad53=function(_0x375d2c,_0x2c89b7){_0x375d2c=_0x375d2c-0x0;var _0x1f0ad4=_0xd53a[_0x375d2c];return _0x1f0ad4;};'use strict';var _=require(_0xad53('0x0'));var util=require(_0xad53('0x1'));var logger=require(_0xad53('0x2'))('api');var moment=require(_0xad53('0x3'));var BPromise=require(_0xad53('0x4'));var rp=require(_0xad53('0x5'));var fs=require('fs');var path=require(_0xad53('0x6'));var rimraf=require(_0xad53('0x7'));var config=require(_0xad53('0x8'));var attributes=require(_0xad53('0x9'));module[_0xad53('0xa')]=function(_0x384211,_0x1cceca){return _0x384211[_0xad53('0xb')](_0xad53('0xc'),attributes,{'tableName':_0xad53('0xd'),'paranoid':![],'indexes':[{'name':_0xad53('0xe'),'fields':[_0xad53('0xf'),_0xad53('0x10')],'unique':!![]}],'timestamps':!![]});};