1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x98dc=['../../components/extensions/rewrite','Interval','tools_intervals','rewrite','lodash','util','../../config/logger','api','request-promise','path','rimraf','../../config/environment','./interval.attributes'];(function(_0x411add,_0x1aed38){var _0x238242=function(_0x4a1cd5){while(--_0x4a1cd5){_0x411add['push'](_0x411add['shift']());}};_0x238242(++_0x1aed38);}(_0x98dc,0x18a));var _0xc98d=function(_0x42295e,_0x2db145){_0x42295e=_0x42295e-0x0;var _0x5dd475=_0x98dc[_0x42295e];return _0x5dd475;};'use strict';var _=require(_0xc98d('0x0'));var util=require(_0xc98d('0x1'));var logger=require(_0xc98d('0x2'))(_0xc98d('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xc98d('0x4'));var fs=require('fs');var path=require(_0xc98d('0x5'));var rimraf=require(_0xc98d('0x6'));var config=require(_0xc98d('0x7'));var attributes=require(_0xc98d('0x8'));var extensions=require(_0xc98d('0x9'));module['exports']=function(_0x447adc,_0x3066b0){return _0x447adc['define'](_0xc98d('0xa'),attributes,{'tableName':_0xc98d('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x569366,_0x513fdd){extensions['rewrite'](_0x447adc,_0x569366);},'afterBulkCreate':function(_0x27ca31,_0x12dfeb,_0x9a6c83){_0x9a6c83();extensions[_0xc98d('0xc')](_0x447adc,_0x27ca31[0x0]);},'afterUpdate':function(_0x4210bb,_0x19b712){extensions[_0xc98d('0xc')](_0x447adc,_0x4210bb);},'afterDestroy':function(_0x178b8b,_0x472048){extensions[_0xc98d('0xc')](_0x447adc,_0x178b8b);}}});};