271f80dd19fe5ce9e4964d4e7bf8618dba975b8c
[motion2.git] / server / api / cannedAnswer / cannedAnswer.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 _0x13ba=['request-promise','rimraf','./cannedAnswer.attributes','exports','define','CannedAnswer','tools_canned_answers','lodash','../../config/logger','moment','bluebird'];(function(_0x1c8c2f,_0x1d99fe){var _0x24fa67=function(_0x15fd50){while(--_0x15fd50){_0x1c8c2f['push'](_0x1c8c2f['shift']());}};_0x24fa67(++_0x1d99fe);}(_0x13ba,0x1bf));var _0xa13b=function(_0x1d0764,_0x2beb7c){_0x1d0764=_0x1d0764-0x0;var _0x423f49=_0x13ba[_0x1d0764];return _0x423f49;};'use strict';var _=require(_0xa13b('0x0'));var util=require('util');var logger=require(_0xa13b('0x1'))('api');var moment=require(_0xa13b('0x2'));var BPromise=require(_0xa13b('0x3'));var rp=require(_0xa13b('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xa13b('0x5'));var config=require('../../config/environment');var attributes=require(_0xa13b('0x6'));module[_0xa13b('0x7')]=function(_0x491ba3,_0x3875c5){return _0x491ba3[_0xa13b('0x8')](_0xa13b('0x9'),attributes,{'tableName':_0xa13b('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});};