7a132343c1300b8e43e2bb9edd43c9ec187a56a7
[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 _0x4200=['bluebird','path','rimraf','../../config/environment','./voicePrefix.attributes','exports','define','VoicePrefix','voice_prefixes','util','../../config/logger','api'];(function(_0x2f5de9,_0x2485be){var _0x890a7f=function(_0x1687da){while(--_0x1687da){_0x2f5de9['push'](_0x2f5de9['shift']());}};_0x890a7f(++_0x2485be);}(_0x4200,0xe1));var _0x0420=function(_0x8ba184,_0x45ed1b){_0x8ba184=_0x8ba184-0x0;var _0x4f0f8c=_0x4200[_0x8ba184];return _0x4f0f8c;};'use strict';var _=require('lodash');var util=require(_0x0420('0x0'));var logger=require(_0x0420('0x1'))(_0x0420('0x2'));var moment=require('moment');var BPromise=require(_0x0420('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0420('0x4'));var rimraf=require(_0x0420('0x5'));var config=require(_0x0420('0x6'));var attributes=require(_0x0420('0x7'));module[_0x0420('0x8')]=function(_0x1be5cb,_0x4ca8d4){return _0x1be5cb[_0x0420('0x9')](_0x0420('0xa'),attributes,{'tableName':_0x0420('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};