951b3bd518b24a2ee2a2f334d78212bc9e6da866
[motion2.git] / server / api / voicePrefix / voicePrefix.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 _0x1a22=['../../config/environment','exports','define','VoicePrefix','voice_prefixes','lodash','util','../../config/logger','bluebird','request-promise','path','rimraf'];(function(_0x1edd20,_0x1dbc2f){var _0x4188b9=function(_0x465e48){while(--_0x465e48){_0x1edd20['push'](_0x1edd20['shift']());}};_0x4188b9(++_0x1dbc2f);}(_0x1a22,0x1d9));var _0x21a2=function(_0x296db4,_0x3244dc){_0x296db4=_0x296db4-0x0;var _0x44e41c=_0x1a22[_0x296db4];return _0x44e41c;};'use strict';var _=require(_0x21a2('0x0'));var util=require(_0x21a2('0x1'));var logger=require(_0x21a2('0x2'))('api');var moment=require('moment');var BPromise=require(_0x21a2('0x3'));var rp=require(_0x21a2('0x4'));var fs=require('fs');var path=require(_0x21a2('0x5'));var rimraf=require(_0x21a2('0x6'));var config=require(_0x21a2('0x7'));var attributes=require('./voicePrefix.attributes');module[_0x21a2('0x8')]=function(_0x1b564f,_0x540e2a){return _0x1b564f[_0x21a2('0x9')](_0x21a2('0xa'),attributes,{'tableName':_0x21a2('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};