Built motion from commit (unavailable).|2.5.14
[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 _0xe09d=['rimraf','../../config/environment','./template.attributes','exports','define','Template','tools_templates','lodash','util','../../config/logger','bluebird','request-promise','path'];(function(_0x38cfe6,_0x13f32a){var _0xffcb11=function(_0x18ea20){while(--_0x18ea20){_0x38cfe6['push'](_0x38cfe6['shift']());}};_0xffcb11(++_0x13f32a);}(_0xe09d,0x166));var _0xde09=function(_0x5dcebf,_0x3b43fb){_0x5dcebf=_0x5dcebf-0x0;var _0x309252=_0xe09d[_0x5dcebf];return _0x309252;};'use strict';var _=require(_0xde09('0x0'));var util=require(_0xde09('0x1'));var logger=require(_0xde09('0x2'))('api');var moment=require('moment');var BPromise=require(_0xde09('0x3'));var rp=require(_0xde09('0x4'));var fs=require('fs');var path=require(_0xde09('0x5'));var rimraf=require(_0xde09('0x6'));var config=require(_0xde09('0x7'));var attributes=require(_0xde09('0x8'));module[_0xde09('0x9')]=function(_0x4c2598,_0x1a1483){return _0x4c2598[_0xde09('0xa')](_0xde09('0xb'),attributes,{'tableName':_0xde09('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};