7334f234fd378140956c77079cc22b86ba8f192f
[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 _0x3977=['moment','bluebird','path','rimraf','exports','define','Template','tools_templates','util','../../config/logger'];(function(_0x3f2fea,_0x3c4ea8){var _0x69a4d5=function(_0x223109){while(--_0x223109){_0x3f2fea['push'](_0x3f2fea['shift']());}};_0x69a4d5(++_0x3c4ea8);}(_0x3977,0x15c));var _0x7397=function(_0x1facfa,_0x1acf7d){_0x1facfa=_0x1facfa-0x0;var _0x9ec701=_0x3977[_0x1facfa];return _0x9ec701;};'use strict';var _=require('lodash');var util=require(_0x7397('0x0'));var logger=require(_0x7397('0x1'))('api');var moment=require(_0x7397('0x2'));var BPromise=require(_0x7397('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7397('0x4'));var rimraf=require(_0x7397('0x5'));var config=require('../../config/environment');var attributes=require('./template.attributes');module[_0x7397('0x6')]=function(_0xbbcc1b,_0x42f1b7){return _0xbbcc1b[_0x7397('0x7')](_0x7397('0x8'),attributes,{'tableName':_0x7397('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};