2634e80663d7f245a3e50f9eb8b6e54eae39b2b3
[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 _0xf902=['moment','bluebird','request-promise','path','rimraf','./template.attributes','exports','define','Template','tools_templates','lodash','util','api'];(function(_0x15dbca,_0x1d7c3c){var _0x326533=function(_0x507ee2){while(--_0x507ee2){_0x15dbca['push'](_0x15dbca['shift']());}};_0x326533(++_0x1d7c3c);}(_0xf902,0x11b));var _0x2f90=function(_0x335ded,_0x4e72c5){_0x335ded=_0x335ded-0x0;var _0x5bd5da=_0xf902[_0x335ded];return _0x5bd5da;};'use strict';var _=require(_0x2f90('0x0'));var util=require(_0x2f90('0x1'));var logger=require('../../config/logger')(_0x2f90('0x2'));var moment=require(_0x2f90('0x3'));var BPromise=require(_0x2f90('0x4'));var rp=require(_0x2f90('0x5'));var fs=require('fs');var path=require(_0x2f90('0x6'));var rimraf=require(_0x2f90('0x7'));var config=require('../../config/environment');var attributes=require(_0x2f90('0x8'));module[_0x2f90('0x9')]=function(_0x2c5781,_0x4231dc){return _0x2c5781[_0x2f90('0xa')](_0x2f90('0xb'),attributes,{'tableName':_0x2f90('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};