5af4f82ccb61b127abbee0d40b4e109aac1d7df8
[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 _0xfb68=['../../config/environment','./template.attributes','exports','Template','tools_templates','lodash','../../config/logger','moment','bluebird','path','rimraf'];(function(_0x126558,_0x143c9a){var _0x1f6d14=function(_0x2b0eea){while(--_0x2b0eea){_0x126558['push'](_0x126558['shift']());}};_0x1f6d14(++_0x143c9a);}(_0xfb68,0x186));var _0x8fb6=function(_0x527d7b,_0x1e780c){_0x527d7b=_0x527d7b-0x0;var _0x3224e7=_0xfb68[_0x527d7b];return _0x3224e7;};'use strict';var _=require(_0x8fb6('0x0'));var util=require('util');var logger=require(_0x8fb6('0x1'))('api');var moment=require(_0x8fb6('0x2'));var BPromise=require(_0x8fb6('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x8fb6('0x4'));var rimraf=require(_0x8fb6('0x5'));var config=require(_0x8fb6('0x6'));var attributes=require(_0x8fb6('0x7'));module[_0x8fb6('0x8')]=function(_0x41ecc,_0x107f3f){return _0x41ecc['define'](_0x8fb6('0x9'),attributes,{'tableName':_0x8fb6('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};