e854110dd334da8312db936c27d98415b2bc67d6
[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 _0xf9fb=['../../config/environment','exports','define','DeskField','idField','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf'];(function(_0xc35f72,_0x2b88b4){var _0x498249=function(_0x2d07e2){while(--_0x2d07e2){_0xc35f72['push'](_0xc35f72['shift']());}};_0x498249(++_0x2b88b4);}(_0xf9fb,0xd7));var _0xbf9f=function(_0x652c5a,_0x95cde5){_0x652c5a=_0x652c5a-0x0;var _0x4d5c3d=_0xf9fb[_0x652c5a];return _0x4d5c3d;};'use strict';var _=require(_0xbf9f('0x0'));var util=require(_0xbf9f('0x1'));var logger=require(_0xbf9f('0x2'))(_0xbf9f('0x3'));var moment=require(_0xbf9f('0x4'));var BPromise=require(_0xbf9f('0x5'));var rp=require(_0xbf9f('0x6'));var fs=require('fs');var path=require(_0xbf9f('0x7'));var rimraf=require(_0xbf9f('0x8'));var config=require(_0xbf9f('0x9'));var attributes=require('./intDeskField.attributes');module[_0xbf9f('0xa')]=function(_0x101920,_0x301e93){return _0x101920[_0xbf9f('0xb')](_0xbf9f('0xc'),attributes,{'tableName':'int_desk_fields','paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0xbf9f('0xd'),'FieldId'],'unique':!![]}],'timestamps':!![]});};