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 _0xa2ef=['request-promise','rimraf','../../config/environment','./interval.attributes','exports','define','Interval','rewrite','lodash','util','../../config/logger','api','moment'];(function(_0x327b49,_0xc232b8){var _0x4e7265=function(_0x4e99c1){while(--_0x4e99c1){_0x327b49['push'](_0x327b49['shift']());}};_0x4e7265(++_0xc232b8);}(_0xa2ef,0x119));var _0xfa2e=function(_0x205f0f,_0x35c4bd){_0x205f0f=_0x205f0f-0x0;var _0x4c9ae8=_0xa2ef[_0x205f0f];return _0x4c9ae8;};'use strict';var _=require(_0xfa2e('0x0'));var util=require(_0xfa2e('0x1'));var logger=require(_0xfa2e('0x2'))(_0xfa2e('0x3'));var moment=require(_0xfa2e('0x4'));var BPromise=require('bluebird');var rp=require(_0xfa2e('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xfa2e('0x6'));var config=require(_0xfa2e('0x7'));var attributes=require(_0xfa2e('0x8'));var extensions=require('../../components/extensions/rewrite');module[_0xfa2e('0x9')]=function(_0x3390e3,_0x4ddde8){return _0x3390e3[_0xfa2e('0xa')](_0xfa2e('0xb'),attributes,{'tableName':'tools_intervals','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0xae2907,_0x17994b){extensions['rewrite'](_0x3390e3,_0xae2907);},'afterBulkCreate':function(_0x433232,_0x449e82,_0xe4778){_0xe4778();extensions[_0xfa2e('0xc')](_0x3390e3,_0x433232[0x0]);},'afterUpdate':function(_0x41ef73,_0x4bb7dd){extensions[_0xfa2e('0xc')](_0x3390e3,_0x41ef73);},'afterDestroy':function(_0xc051b4,_0x4d4e28){extensions[_0xfa2e('0xc')](_0x3390e3,_0xc051b4);}}});};