2e60f1963978d06b29b6ae41cf1aae8345087c5e
[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 _0xccef=['path','rimraf','exports','define','Pause','tools_pauses','util','api','moment','bluebird','request-promise'];(function(_0x425efc,_0x254581){var _0x52488f=function(_0x572919){while(--_0x572919){_0x425efc['push'](_0x425efc['shift']());}};_0x52488f(++_0x254581);}(_0xccef,0x1d4));var _0xfcce=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0xccef[_0x4565bf];return _0x5610ba;};'use strict';var _=require('lodash');var util=require(_0xfcce('0x0'));var logger=require('../../config/logger')(_0xfcce('0x1'));var moment=require(_0xfcce('0x2'));var BPromise=require(_0xfcce('0x3'));var rp=require(_0xfcce('0x4'));var fs=require('fs');var path=require(_0xfcce('0x5'));var rimraf=require(_0xfcce('0x6'));var config=require('../../config/environment');var attributes=require('./pause.attributes');module[_0xfcce('0x7')]=function(_0x4f6cae,_0x96ac52){return _0x4f6cae[_0xfcce('0x8')](_0xfcce('0x9'),attributes,{'tableName':_0xfcce('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};