77ae8dc7623fe6441b85c533e8c366071a115248
[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 _0x8c72=['path','rimraf','./voicePrefix.attributes','exports','define','VoicePrefix','voice_prefixes','lodash','../../config/logger','api','request-promise'];(function(_0x14ffc2,_0xa44ba){var _0x444202=function(_0x38162e){while(--_0x38162e){_0x14ffc2['push'](_0x14ffc2['shift']());}};_0x444202(++_0xa44ba);}(_0x8c72,0x151));var _0x28c7=function(_0x4eafed,_0x26e2bc){_0x4eafed=_0x4eafed-0x0;var _0x159c85=_0x8c72[_0x4eafed];return _0x159c85;};'use strict';var _=require(_0x28c7('0x0'));var util=require('util');var logger=require(_0x28c7('0x1'))(_0x28c7('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x28c7('0x3'));var fs=require('fs');var path=require(_0x28c7('0x4'));var rimraf=require(_0x28c7('0x5'));var config=require('../../config/environment');var attributes=require(_0x28c7('0x6'));module[_0x28c7('0x7')]=function(_0x182b42,_0x168574){return _0x182b42[_0x28c7('0x8')](_0x28c7('0x9'),attributes,{'tableName':_0x28c7('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};