ca2b2aabfb8bd66780cea9f7fbe013a80457a439
[motion2.git] / server / api / pause / pause.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 _0x75e3=['request-promise','./pause.attributes','Pause','tools_pauses','util','../../config/logger','moment','bluebird'];(function(_0x408e7f,_0x2d8e6a){var _0xa9377d=function(_0x1c0bdd){while(--_0x1c0bdd){_0x408e7f['push'](_0x408e7f['shift']());}};_0xa9377d(++_0x2d8e6a);}(_0x75e3,0x104));var _0x375e=function(_0x2edd97,_0xee7f3d){_0x2edd97=_0x2edd97-0x0;var _0x35d7aa=_0x75e3[_0x2edd97];return _0x35d7aa;};'use strict';var _=require('lodash');var util=require(_0x375e('0x0'));var logger=require(_0x375e('0x1'))('api');var moment=require(_0x375e('0x2'));var BPromise=require(_0x375e('0x3'));var rp=require(_0x375e('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x375e('0x5'));module['exports']=function(_0x17e32c,_0x52f876){return _0x17e32c['define'](_0x375e('0x6'),attributes,{'tableName':_0x375e('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};