ec845d0b40444a5b53d16f22983a8f10cfea5c74
[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 _0xd70d=['moment','bluebird','request-promise','path','./intDeskField.attributes','exports','define','DeskField','int_desk_fields','desk_unique_index','idField','lodash','util','../../config/logger','api'];(function(_0x387fe4,_0x186656){var _0x43c1c1=function(_0x19ab90){while(--_0x19ab90){_0x387fe4['push'](_0x387fe4['shift']());}};_0x43c1c1(++_0x186656);}(_0xd70d,0x1dc));var _0xdd70=function(_0x441994,_0x58bb50){_0x441994=_0x441994-0x0;var _0x479c50=_0xd70d[_0x441994];return _0x479c50;};'use strict';var _=require(_0xdd70('0x0'));var util=require(_0xdd70('0x1'));var logger=require(_0xdd70('0x2'))(_0xdd70('0x3'));var moment=require(_0xdd70('0x4'));var BPromise=require(_0xdd70('0x5'));var rp=require(_0xdd70('0x6'));var fs=require('fs');var path=require(_0xdd70('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xdd70('0x8'));module[_0xdd70('0x9')]=function(_0x3e0ecf,_0x2a7222){return _0x3e0ecf[_0xdd70('0xa')](_0xdd70('0xb'),attributes,{'tableName':_0xdd70('0xc'),'paranoid':![],'indexes':[{'name':_0xdd70('0xd'),'fields':[_0xdd70('0xe'),'FieldId'],'unique':!![]}],'timestamps':!![]});};