02d3e04d22e5d3f83e2e160e47b41eeac117e6d4
[motion2.git] / server / api / sound / sound.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 _0x863c=['tools_sounds','lodash','util','api','moment','bluebird','rimraf','../../config/environment','./sound.attributes','exports','define','Sound'];(function(_0x9c3c56,_0x169b56){var _0x2dd782=function(_0x386962){while(--_0x386962){_0x9c3c56['push'](_0x9c3c56['shift']());}};_0x2dd782(++_0x169b56);}(_0x863c,0x1d5));var _0xc863=function(_0x215991,_0x4331f2){_0x215991=_0x215991-0x0;var _0x44a588=_0x863c[_0x215991];return _0x44a588;};'use strict';var _=require(_0xc863('0x0'));var util=require(_0xc863('0x1'));var logger=require('../../config/logger')(_0xc863('0x2'));var moment=require(_0xc863('0x3'));var BPromise=require(_0xc863('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xc863('0x5'));var config=require(_0xc863('0x6'));var attributes=require(_0xc863('0x7'));module[_0xc863('0x8')]=function(_0x45ea2a,_0x39468a){return _0x45ea2a[_0xc863('0x9')](_0xc863('0xa'),attributes,{'tableName':_0xc863('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};