3d09554c3ed3699471416aa77d6c5600c4783982
[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 _0xd842=['bluebird','path','rimraf','./intDeskField.attributes','exports','define','DeskField','idField','FieldId','lodash','../../config/logger','api','moment'];(function(_0x5c28fa,_0x3fdcdc){var _0x51d03f=function(_0x45cea3){while(--_0x45cea3){_0x5c28fa['push'](_0x5c28fa['shift']());}};_0x51d03f(++_0x3fdcdc);}(_0xd842,0xe6));var _0x2d84=function(_0x2e5a24,_0xf7ac98){_0x2e5a24=_0x2e5a24-0x0;var _0x25204a=_0xd842[_0x2e5a24];return _0x25204a;};'use strict';var _=require(_0x2d84('0x0'));var util=require('util');var logger=require(_0x2d84('0x1'))(_0x2d84('0x2'));var moment=require(_0x2d84('0x3'));var BPromise=require(_0x2d84('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2d84('0x5'));var rimraf=require(_0x2d84('0x6'));var config=require('../../config/environment');var attributes=require(_0x2d84('0x7'));module[_0x2d84('0x8')]=function(_0x22460e,_0x3d6328){return _0x22460e[_0x2d84('0x9')](_0x2d84('0xa'),attributes,{'tableName':'int_desk_fields','paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0x2d84('0xb'),_0x2d84('0xc')],'unique':!![]}],'timestamps':!![]});};