afea9403f462afc8d214f92b98f860bc702d6ff9
[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 _0x11f0=['path','rimraf','../../config/environment','./template.attributes','exports','define','Template','tools_templates','util','../../config/logger','api','bluebird','request-promise'];(function(_0x3f8840,_0x67bf4e){var _0x52af23=function(_0x3cb746){while(--_0x3cb746){_0x3f8840['push'](_0x3f8840['shift']());}};_0x52af23(++_0x67bf4e);}(_0x11f0,0x19b));var _0x011f=function(_0x5e6e51,_0x44d023){_0x5e6e51=_0x5e6e51-0x0;var _0x26f430=_0x11f0[_0x5e6e51];return _0x26f430;};'use strict';var _=require('lodash');var util=require(_0x011f('0x0'));var logger=require(_0x011f('0x1'))(_0x011f('0x2'));var moment=require('moment');var BPromise=require(_0x011f('0x3'));var rp=require(_0x011f('0x4'));var fs=require('fs');var path=require(_0x011f('0x5'));var rimraf=require(_0x011f('0x6'));var config=require(_0x011f('0x7'));var attributes=require(_0x011f('0x8'));module[_0x011f('0x9')]=function(_0x24adc8,_0x438d7b){return _0x24adc8[_0x011f('0xa')](_0x011f('0xb'),attributes,{'tableName':_0x011f('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};