Built motion from commit (unavailable).|2.5.14
[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 _0xf905=['rimraf','../../config/environment','./intDeskField.attributes','exports','define','int_desk_fields','idField','util','api','moment','bluebird','path'];(function(_0x4c12ec,_0x2e9103){var _0x3ae42c=function(_0x5a728f){while(--_0x5a728f){_0x4c12ec['push'](_0x4c12ec['shift']());}};_0x3ae42c(++_0x2e9103);}(_0xf905,0x14b));var _0x5f90=function(_0x616290,_0x280b7f){_0x616290=_0x616290-0x0;var _0x453879=_0xf905[_0x616290];return _0x453879;};'use strict';var _=require('lodash');var util=require(_0x5f90('0x0'));var logger=require('../../config/logger')(_0x5f90('0x1'));var moment=require(_0x5f90('0x2'));var BPromise=require(_0x5f90('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x5f90('0x4'));var rimraf=require(_0x5f90('0x5'));var config=require(_0x5f90('0x6'));var attributes=require(_0x5f90('0x7'));module[_0x5f90('0x8')]=function(_0x1345be,_0x909e63){return _0x1345be[_0x5f90('0x9')]('DeskField',attributes,{'tableName':_0x5f90('0xa'),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0x5f90('0xb'),'FieldId'],'unique':!![]}],'timestamps':!![]});};