Built motion from commit 3c2ce842.|2.6.31
[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 _0xe903=['request-promise','rimraf','exports','define','Sound','util','../../config/logger','api','moment'];(function(_0x2dadb9,_0x42cfe6){var _0x2f0097=function(_0x21163f){while(--_0x21163f){_0x2dadb9['push'](_0x2dadb9['shift']());}};_0x2f0097(++_0x42cfe6);}(_0xe903,0x1c7));var _0x3e90=function(_0x28d18d,_0x55896b){_0x28d18d=_0x28d18d-0x0;var _0x470640=_0xe903[_0x28d18d];return _0x470640;};'use strict';var _=require('lodash');var util=require(_0x3e90('0x0'));var logger=require(_0x3e90('0x1'))(_0x3e90('0x2'));var moment=require(_0x3e90('0x3'));var BPromise=require('bluebird');var rp=require(_0x3e90('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x3e90('0x5'));var config=require('../../config/environment');var attributes=require('./sound.attributes');module[_0x3e90('0x6')]=function(_0x2e3209,_0x2924f4){return _0x2e3209[_0x3e90('0x7')](_0x3e90('0x8'),attributes,{'tableName':'tools_sounds','paranoid':![],'indexes':[],'timestamps':!![]});};