Built motion from commit (unavailable).|2.3.91
[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 _0xc16d=['exports','define','Interval','tools_intervals','rewrite','lodash','moment','bluebird','request-promise','./interval.attributes','../../components/extensions/rewrite'];(function(_0x5d5bcb,_0x25e2ea){var _0x4ea5eb=function(_0x36782b){while(--_0x36782b){_0x5d5bcb['push'](_0x5d5bcb['shift']());}};_0x4ea5eb(++_0x25e2ea);}(_0xc16d,0x186));var _0xdc16=function(_0x4e26df,_0x45f911){_0x4e26df=_0x4e26df-0x0;var _0x2facda=_0xc16d[_0x4e26df];return _0x2facda;};'use strict';var _=require(_0xdc16('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0xdc16('0x1'));var BPromise=require(_0xdc16('0x2'));var rp=require(_0xdc16('0x3'));var attributes=require(_0xdc16('0x4'));var extensions=require(_0xdc16('0x5'));module[_0xdc16('0x6')]=function(_0x303336,_0x48a87d){return _0x303336[_0xdc16('0x7')](_0xdc16('0x8'),attributes,{'tableName':_0xdc16('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x46e517,_0x287633){extensions[_0xdc16('0xa')](_0x303336,_0x46e517);},'afterBulkCreate':function(_0x3bcee0,_0x116394,_0x268b5c){_0x268b5c();extensions[_0xdc16('0xa')](_0x303336,_0x3bcee0[0x0]);},'afterUpdate':function(_0xc05871,_0x4670f3){extensions[_0xdc16('0xa')](_0x303336,_0xc05871);},'afterDestroy':function(_0x1689b0,_0x5149a8){extensions[_0xdc16('0xa')](_0x303336,_0x1689b0);}}});};