Built motion from commit d5e4af8c.|2.6.23
[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 _0x00ef=['request-promise','path','./intDeskField.attributes','define','DeskField','int_desk_fields','desk_unique_index','FieldId','lodash','../../config/logger','moment'];(function(_0x55498a,_0x1ee0e4){var _0x27b7f4=function(_0x32cefb){while(--_0x32cefb){_0x55498a['push'](_0x55498a['shift']());}};_0x27b7f4(++_0x1ee0e4);}(_0x00ef,0x1e1));var _0xf00e=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x00ef[_0x57b54c];return _0x59cc19;};'use strict';var _=require(_0xf00e('0x0'));var util=require('util');var logger=require(_0xf00e('0x1'))('api');var moment=require(_0xf00e('0x2'));var BPromise=require('bluebird');var rp=require(_0xf00e('0x3'));var fs=require('fs');var path=require(_0xf00e('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xf00e('0x5'));module['exports']=function(_0x565b58,_0x625d26){return _0x565b58[_0xf00e('0x6')](_0xf00e('0x7'),attributes,{'tableName':_0xf00e('0x8'),'paranoid':![],'indexes':[{'name':_0xf00e('0x9'),'fields':['idField',_0xf00e('0xa')],'unique':!![]}],'timestamps':!![]});};