49f117d048b6ba4b02c33e0b96d055ca6df28bb7
[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 _0x6712=['../../config/environment','./sound.attributes','exports','define','Sound','tools_sounds','lodash','../../config/logger','moment','bluebird','request-promise','path'];(function(_0x212906,_0x132841){var _0x5565a4=function(_0x40d469){while(--_0x40d469){_0x212906['push'](_0x212906['shift']());}};_0x5565a4(++_0x132841);}(_0x6712,0xd2));var _0x2671=function(_0x160c73,_0x2ee678){_0x160c73=_0x160c73-0x0;var _0xd9302=_0x6712[_0x160c73];return _0xd9302;};'use strict';var _=require(_0x2671('0x0'));var util=require('util');var logger=require(_0x2671('0x1'))('api');var moment=require(_0x2671('0x2'));var BPromise=require(_0x2671('0x3'));var rp=require(_0x2671('0x4'));var fs=require('fs');var path=require(_0x2671('0x5'));var rimraf=require('rimraf');var config=require(_0x2671('0x6'));var attributes=require(_0x2671('0x7'));module[_0x2671('0x8')]=function(_0x5783bc,_0x2763d3){return _0x5783bc[_0x2671('0x9')](_0x2671('0xa'),attributes,{'tableName':_0x2671('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};