Built motion from commit b0a9a629.|2.6.33
[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 _0x1bc5=['api','moment','path','rimraf','./intDeskField.attributes','exports','DeskField','int_desk_fields','desk_unique_index','idField','FieldId','lodash','util','../../config/logger'];(function(_0x577e13,_0xc2c054){var _0x13a973=function(_0x517cc9){while(--_0x517cc9){_0x577e13['push'](_0x577e13['shift']());}};_0x13a973(++_0xc2c054);}(_0x1bc5,0x1a1));var _0x51bc=function(_0xbb091,_0x3fe7ee){_0xbb091=_0xbb091-0x0;var _0x467a04=_0x1bc5[_0xbb091];return _0x467a04;};'use strict';var _=require(_0x51bc('0x0'));var util=require(_0x51bc('0x1'));var logger=require(_0x51bc('0x2'))(_0x51bc('0x3'));var moment=require(_0x51bc('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x51bc('0x5'));var rimraf=require(_0x51bc('0x6'));var config=require('../../config/environment');var attributes=require(_0x51bc('0x7'));module[_0x51bc('0x8')]=function(_0x5f03ad,_0x5da2d0){return _0x5f03ad['define'](_0x51bc('0x9'),attributes,{'tableName':_0x51bc('0xa'),'paranoid':![],'indexes':[{'name':_0x51bc('0xb'),'fields':[_0x51bc('0xc'),_0x51bc('0xd')],'unique':!![]}],'timestamps':!![]});};