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 _0xeebe=['lodash','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','./interval.attributes','../../components/extensions/rewrite','exports','define','Interval','tools_intervals','rewrite'];(function(_0x219143,_0x451ca3){var _0x501e6b=function(_0x5888fc){while(--_0x5888fc){_0x219143['push'](_0x219143['shift']());}};_0x501e6b(++_0x451ca3);}(_0xeebe,0xff));var _0xeeeb=function(_0x122096,_0x60c295){_0x122096=_0x122096-0x0;var _0x3d1966=_0xeebe[_0x122096];return _0x3d1966;};'use strict';var _=require(_0xeeeb('0x0'));var util=require('util');var logger=require(_0xeeeb('0x1'))('api');var moment=require(_0xeeeb('0x2'));var BPromise=require(_0xeeeb('0x3'));var rp=require(_0xeeeb('0x4'));var fs=require('fs');var path=require(_0xeeeb('0x5'));var rimraf=require(_0xeeeb('0x6'));var config=require(_0xeeeb('0x7'));var attributes=require(_0xeeeb('0x8'));var extensions=require(_0xeeeb('0x9'));module[_0xeeeb('0xa')]=function(_0x39573a,_0x46c645){return _0x39573a[_0xeeeb('0xb')](_0xeeeb('0xc'),attributes,{'tableName':_0xeeeb('0xd'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0xc3e1ba,_0x263799){extensions[_0xeeeb('0xe')](_0x39573a,_0xc3e1ba);},'afterBulkCreate':function(_0x426a82,_0x4a1161,_0x4f4bb7){_0x4f4bb7();extensions[_0xeeeb('0xe')](_0x39573a,_0x426a82[0x0]);},'afterUpdate':function(_0x3f98db,_0x29ea4c){extensions['rewrite'](_0x39573a,_0x3f98db);},'afterDestroy':function(_0x3eb739,_0x34b67b){extensions[_0xeeeb('0xe')](_0x39573a,_0x3eb739);}}});};