87c5b3a6884aa109c31ab8aaa67aeaa0baefc740
[motion2.git] / server / api / intDeskField / intDeskField.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 _0x219e=['rimraf','../../config/environment','./intDeskField.attributes','exports','DeskField','int_desk_fields','desk_unique_index','idField','FieldId','util','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x219e,0xd9));var _0xe219=function(_0x2dadb9,_0x42cfe6){_0x2dadb9=_0x2dadb9-0x0;var _0x2f0097=_0x219e[_0x2dadb9];return _0x2f0097;};'use strict';var _=require('lodash');var util=require(_0xe219('0x0'));var logger=require(_0xe219('0x1'))(_0xe219('0x2'));var moment=require(_0xe219('0x3'));var BPromise=require(_0xe219('0x4'));var rp=require(_0xe219('0x5'));var fs=require('fs');var path=require(_0xe219('0x6'));var rimraf=require(_0xe219('0x7'));var config=require(_0xe219('0x8'));var attributes=require(_0xe219('0x9'));module[_0xe219('0xa')]=function(_0x18928c,_0x45b258){return _0x18928c['define'](_0xe219('0xb'),attributes,{'tableName':_0xe219('0xc'),'paranoid':![],'indexes':[{'name':_0xe219('0xd'),'fields':[_0xe219('0xe'),_0xe219('0xf')],'unique':!![]}],'timestamps':!![]});};