2bc1263cd7b5bfb4843132f236236b6b34663b41
[motion2.git] / server / api / template / template.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 _0x6049=['lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','Template','tools_templates'];(function(_0xeaf45a,_0x1d4b77){var _0x3cd72e=function(_0x4571b7){while(--_0x4571b7){_0xeaf45a['push'](_0xeaf45a['shift']());}};_0x3cd72e(++_0x1d4b77);}(_0x6049,0x8c));var _0x9604=function(_0x47e8fe,_0x49b30d){_0x47e8fe=_0x47e8fe-0x0;var _0x419497=_0x6049[_0x47e8fe];return _0x419497;};'use strict';var _=require(_0x9604('0x0'));var util=require(_0x9604('0x1'));var logger=require(_0x9604('0x2'))(_0x9604('0x3'));var moment=require(_0x9604('0x4'));var BPromise=require(_0x9604('0x5'));var rp=require(_0x9604('0x6'));var fs=require('fs');var path=require(_0x9604('0x7'));var rimraf=require(_0x9604('0x8'));var config=require(_0x9604('0x9'));var attributes=require('./template.attributes');module[_0x9604('0xa')]=function(_0x34aa8d,_0xf3bd19){return _0x34aa8d[_0x9604('0xb')](_0x9604('0xc'),attributes,{'tableName':_0x9604('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};