6ae8a6888bb66942fcd0dd1e69a4cba8d0341f75
[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 _0x4e53=['util','../../config/logger','api','moment','bluebird','path','../../config/environment','exports','define','tools_sounds','lodash'];(function(_0x168f21,_0x70b14){var _0x66dba=function(_0x59e73e){while(--_0x59e73e){_0x168f21['push'](_0x168f21['shift']());}};_0x66dba(++_0x70b14);}(_0x4e53,0x83));var _0x34e5=function(_0x3a723e,_0x59d99a){_0x3a723e=_0x3a723e-0x0;var _0x3e9c03=_0x4e53[_0x3a723e];return _0x3e9c03;};'use strict';var _=require(_0x34e5('0x0'));var util=require(_0x34e5('0x1'));var logger=require(_0x34e5('0x2'))(_0x34e5('0x3'));var moment=require(_0x34e5('0x4'));var BPromise=require(_0x34e5('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x34e5('0x6'));var rimraf=require('rimraf');var config=require(_0x34e5('0x7'));var attributes=require('./sound.attributes');module[_0x34e5('0x8')]=function(_0x9215db,_0x18bc2e){return _0x9215db[_0x34e5('0x9')]('Sound',attributes,{'tableName':_0x34e5('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};