Built motion from commit (unavailable).|2.5.10
[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 _0x5269=['request-promise','path','rimraf','../../config/environment','exports','define','desk_unique_index','idField','FieldId','util','../../config/logger','moment','bluebird'];(function(_0x1ecfe0,_0x372db6){var _0x5c6a22=function(_0x453571){while(--_0x453571){_0x1ecfe0['push'](_0x1ecfe0['shift']());}};_0x5c6a22(++_0x372db6);}(_0x5269,0x1ea));var _0x9526=function(_0xe2fbae,_0x22debe){_0xe2fbae=_0xe2fbae-0x0;var _0x2c6352=_0x5269[_0xe2fbae];return _0x2c6352;};'use strict';var _=require('lodash');var util=require(_0x9526('0x0'));var logger=require(_0x9526('0x1'))('api');var moment=require(_0x9526('0x2'));var BPromise=require(_0x9526('0x3'));var rp=require(_0x9526('0x4'));var fs=require('fs');var path=require(_0x9526('0x5'));var rimraf=require(_0x9526('0x6'));var config=require(_0x9526('0x7'));var attributes=require('./intDeskField.attributes');module[_0x9526('0x8')]=function(_0x5b6044,_0x5dc777){return _0x5b6044[_0x9526('0x9')]('DeskField',attributes,{'tableName':'int_desk_fields','paranoid':![],'indexes':[{'name':_0x9526('0xa'),'fields':[_0x9526('0xb'),_0x9526('0xc')],'unique':!![]}],'timestamps':!![]});};