Built motion from commit 775e2a94.|2.6.3
[motion2.git] / server / api / interval / interval.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 _0x06f7=['define','Interval','rewrite','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./interval.attributes','../../components/extensions/rewrite','exports'];(function(_0x38eb23,_0x196e8b){var _0x48506a=function(_0x36edb0){while(--_0x36edb0){_0x38eb23['push'](_0x38eb23['shift']());}};_0x48506a(++_0x196e8b);}(_0x06f7,0x73));var _0x706f=function(_0x5a26db,_0x2c5ccd){_0x5a26db=_0x5a26db-0x0;var _0x4619dd=_0x06f7[_0x5a26db];return _0x4619dd;};'use strict';var _=require(_0x706f('0x0'));var util=require(_0x706f('0x1'));var logger=require(_0x706f('0x2'))(_0x706f('0x3'));var moment=require(_0x706f('0x4'));var BPromise=require(_0x706f('0x5'));var rp=require(_0x706f('0x6'));var fs=require('fs');var path=require(_0x706f('0x7'));var rimraf=require(_0x706f('0x8'));var config=require(_0x706f('0x9'));var attributes=require(_0x706f('0xa'));var extensions=require(_0x706f('0xb'));module[_0x706f('0xc')]=function(_0x2ee647,_0x9a488f){return _0x2ee647[_0x706f('0xd')](_0x706f('0xe'),attributes,{'tableName':'tools_intervals','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x3f5c82,_0x526c20){extensions[_0x706f('0xf')](_0x2ee647,_0x3f5c82);},'afterBulkCreate':function(_0x24385c,_0x166f76,_0x1a7357){_0x1a7357();extensions[_0x706f('0xf')](_0x2ee647,_0x24385c[0x0]);},'afterUpdate':function(_0x57e1a0,_0x23d4ce){extensions[_0x706f('0xf')](_0x2ee647,_0x57e1a0);},'afterDestroy':function(_0xa99d,_0x13cf2b){extensions[_0x706f('0xf')](_0x2ee647,_0xa99d);}}});};